Skip to content

Refactoring, more tests

Compare
Choose a tag to compare
@czechboy0 czechboy0 released this 08 Jun 10:37
· 260 commits to master since this release

This release brings a little bit of renaming, but a lot more functionality!

New features:

  • select() is now included, allowing for easy watching of multiple sockets for activity (great for single-threaded servers with keepAlive) #45
  • pipe() allows for much easier testing, by opening two connected sockets to each other, one reader and one writer #44
  • SIGPIPE is now never emitted, if you try to write into a peer-closed TCP socket, you'll get a proper error thrown #44

Possible migration:

  • TCPSocket was renamed to TCPInternetSocket to better reflect what it is, TCPSocket is now a protocol which can be used in many more scenarios (such as locally-connected TCP socket, without having an InternetAddress)