sustrik / libmill

Go-style concurrency in C
MIT License
2.74k stars 204 forks source link

Socket shutdown #165

Closed millerlogic closed 7 years ago

millerlogic commented 7 years ago

Hi, I need to shutdown a socket similar to #149 but I would also like to use this library's socket wrappers rather than fdwait.

Here is a proof of concept for unixsock only, https://github.com/millerlogic/libmill/commit/9435397f46246263efa125cafa6a91a7aae23083

Is this something you would consider integrating into the library for all the socket types?

Thank you for the library, -Chris

sustrik commented 7 years ago

Yes, it looks good. Just send a pull request and don't forget to state that it's submitted under MIT/X11 license.