Commit Graph
10 Commits
Author SHA1 Message Date
Norman Maurer fce361e337 Tighten up visibility to allow the optimizer doing a better job 2017-06-09 11:16:59 +02:00
Johannes Weiß d941745bdc protect already closed sockets 2017-06-08 15:04:59 +01:00
Johannes Weiß cd4bb67138 make compatible with Swift 4 compiler (in Swift 3 mode) 2017-06-02 18:25:33 +01:00
Norman Maurer d5ac9b8b66 Add ClientBootstrap and so support for client side channels as well 2017-05-30 19:10:45 +02:00
Norman Maurer db2002840d Add Channel.connect(...) and needed methods to Socket to support connect. This will allow us to support client and server easily in the future. 2017-05-24 22:13:17 +02:00
Kevin Clark 7ef823a44a Port ByteBuf
This implements a heap based ByteBuffer modeled on Netty's ByteBuf. It provides read and write access via Unsafe{Mutable}Pointers (withReadPointer, withMutableWritePointer) and read access via withData. Instead of providing public access to mutating readIndex/writeIndex, the mutable withPointer methods take a closure returning the number of bytes written and automatically manages the applicable index.

Read and write helper methods still largely TODO.
2017-05-15 22:30:49 -07:00
Norman Maurer 69aeab14db Ensure errno can not be changed between syscall and retrieving it 2017-05-10 14:10:10 +02:00
Norman Maurer 29ae2b547a Better IOError messages for all classes in Sockets 2017-05-10 13:13:39 +02:00
Kevin Clark 3b3016b4f0 Use sterror on socket function errno 2017-05-09 17:10:58 -07:00
Norman Maurer e193bc97f0 Split into two different modules 2017-05-09 12:50:19 +02:00