issues
search
vapor-community
/
sockets
🔌 Non-blocking TCP socket layer, with event-driven server and client.
MIT License
575
stars
54
forks
source link
Refactoring + fixed NOSIGPIPE (with tests)
#44
Closed
czechboy0
closed
8 years ago
czechboy0
commented
8 years ago
renamed TCPSocket to TCPInternetSocket (TCPSocket is now a protocol that encompasses even non-internet TCP sockets) - same for UDP
added pipe() to allow for local testing by creating two connected sockets - useful for testing
disabled SIGPIPE on all created sockets, tested in tests (that's where pipe() becomes useful)
added a few very basic pipe tests, more will come in later PRs, this allows us to test the lower-level logic much more easily
Fixes #37, replaces #43.
/cc @tannernelson
Fixes #37, replaces #43.
/cc @tannernelson