Norman Maurer
2ca36ad86a
Remove duplicated code and also remove @discardResult where it makes no sense
2017-06-16 13:14:23 +01:00
Johannes Weiß
b73bfdab70
remove some existentials by specialising the data type (IOData)
2017-06-15 19:43:49 +01:00
Norman Maurer
58d0883b2d
Fork Future-Swift and adjust it to ensure callback execution is always done on the EventLoop.
...
- Also remove all methods that use Dispatch for now as we not need these
- Ensure we will detect if the user calls a blocking method while on the EventLoop and crash to guard against deadlock
2017-06-12 13:44:10 +02:00
Norman Maurer
c0a2810840
Port AdaptiveRecvByteBufferAllocator from netty and make it the default
2017-06-12 09:13:21 +02:00
Norman Maurer
c6685c3e7c
Use types to allow the compile to specialize the methods
2017-06-09 15:47:10 +02:00
Norman Maurer
65aa3f6bbd
Use one EventLoop and adjust some options for the NIOEchoServer
2017-06-07 19:21:13 +02:00
Norman Maurer
c8eb940aa7
Add support for running multiple EventLoops
2017-05-30 14:09:02 +02:00
Norman Maurer
c1570dbfea
Introduce ServerBootstrap which replaces NIOServer
2017-05-23 19:14:44 +02:00
Norman Maurer
f933093a1e
Introduce ServerSocketChannel which will accept SocketChannel instances. Now the ServerSocket and the Socket are both handled directly via the EventLoop and make use of the pipeline just like in Netty.
2017-05-23 14:53:21 +02:00
Norman Maurer
275e69be63
Add support for gathering writes to Socket and also ensure Channel will automatically use gathering writes if you call Channel*.write multiple times followed by a flush.
...
Beside this I removed the Socket.write and Socket.read method that takes an offset as these are redundant with just pass in a subrange of Data.
2017-05-19 15:28:15 +02:00
Norman Maurer
83d1f86efb
Introduce ChannelOption and use it to set / get config values
2017-05-18 07:35:55 +02:00
Norman Maurer
d462b007d7
Remove backpressure handling from Channel itself and implement it in a generic ChannelHandler, this makes it more flexible for the user what to do
2017-05-17 09:40:44 +02:00
Norman Maurer
53fe94869f
Replace AnyObject with Any to allow passing classes and structs through the pipeline
2017-05-12 19:10:23 +02:00
Norman Maurer
6587222278
Make the pipeline more usable by adding add/remove/contains methods
2017-05-11 13:29:35 +02:00
Norman Maurer
9780f68603
Use AnyObject for writes and reads to allow passing any object throught the pipeline
2017-05-10 07:42:28 +02:00
Norman Maurer
4890ca6ed8
Cleanup after the split of modules and fix visibility
2017-05-09 14:16:03 +02:00