Norman Maurer
|
c18ef69652
|
Remove all handlers once a Channel is unregistered
|
2017-05-11 17:21:06 +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
|
41484d1c85
|
Add ChannelConfig and make a few things configurable
|
2017-05-11 12:44:01 +02:00 |
|
Norman Maurer
|
6f54d3cd3b
|
Cleanup init code
|
2017-05-11 08:15:33 +02:00 |
|
Norman Maurer
|
5c1cad3d2b
|
Remove uncessary while loop
|
2017-05-10 21:43:11 +02:00 |
|
Norman Maurer
|
8482c6aead
|
Ensure errno cant be changed before access it
|
2017-05-10 14:25:15 +02: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 |
|
Norman Maurer
|
a2d301a4dc
|
Replace AnyClass with AnyObject for user events
|
2017-05-10 07:49:22 +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 |
|
Kevin Clark
|
3b3016b4f0
|
Use sterror on socket function errno
|
2017-05-09 17:10:58 -07:00 |
|
Kevin Clark
|
3153e3edf9
|
Make DefaultBufferAllocator#init public
|
2017-05-09 15:08:05 -07:00 |
|
Norman Maurer
|
a3f91cb364
|
Tighten up visibility
|
2017-05-09 20:30:36 +02:00 |
|
Norman Maurer
|
6a55209cb7
|
Only call accept() one time per EventLoop run
|
2017-05-09 20:21:49 +02:00 |
|
Norman Maurer
|
f79d81fb15
|
Move example that only uses the Sockets module into extra module
|
2017-05-09 20:14:47 +02:00 |
|
Norman Maurer
|
a5276fd4d1
|
Add methods to create promise / future from EventLoop
|
2017-05-09 20:07:34 +02:00 |
|
Norman Maurer
|
5bddfaca69
|
Add asserts to ensure we are calling everything from the EventLoop
|
2017-05-09 19:41:33 +02:00 |
|
Norman Maurer
|
91301591ea
|
Move register / deregister / reregister code to EventLoop
|
2017-05-09 19:33:31 +02:00 |
|
Norman Maurer
|
90d2e5a2e1
|
Add register and unregister callbacks
|
2017-05-09 19:23:39 +02:00 |
|
Norman Maurer
|
5a340fa626
|
Handle SIGPIPE
|
2017-05-09 15:25:13 +02:00 |
|
Norman Maurer
|
db81ee9e43
|
Also register for EPOLLERR to detect connection-reset fastly
|
2017-05-09 15:01:52 +02:00 |
|
Norman Maurer
|
4890ca6ed8
|
Cleanup after the split of modules and fix visibility
|
2017-05-09 14:16:03 +02:00 |
|
Norman Maurer
|
e193bc97f0
|
Split into two different modules
|
2017-05-09 12:50:19 +02:00 |
|
Norman Maurer
|
4d07554a2d
|
Expose Channel from pipeline / context
|
2017-05-09 12:14:38 +02:00 |
|
Norman Maurer
|
a8b2a2ec31
|
General cleanup and tighten up visibilities
|
2017-05-09 11:24:11 +02:00 |
|
Norman Maurer
|
2706d48c6c
|
Add the notion of Channel.read() which allows to influence if we should read or stop reading
|
2017-05-09 09:55:24 +02:00 |
|
Norman Maurer
|
9bad11c5f5
|
Add EventLoop.inEventLoop
|
2017-05-08 15:32:25 +02:00 |
|
Norman Maurer
|
16adbe4a58
|
Fail pending writes when channel is closed
|
2017-05-08 15:28:37 +02:00 |
|
Norman Maurer
|
e29b755de8
|
Introduce RecvBufferAllocator
|
2017-05-08 12:15:38 +02:00 |
|
Norman Maurer
|
17c970d013
|
Add EventLoop.execute and schedule
|
2017-05-08 08:21:45 +02:00 |
|
Norman Maurer
|
711cf8a2bb
|
Add BufferAllocator
|
2017-05-08 07:16:30 +02:00 |
|
Norman Maurer
|
16559385fc
|
Add EventLoop
|
2017-05-03 10:56:52 -07:00 |
|
Norman Maurer
|
c1e1301f1b
|
Just declare fields as let in IOError
|
2017-05-03 08:36:16 -07:00 |
|
Norman Maurer
|
1f5952379f
|
simplify ifdef usages when possible
|
2017-05-01 13:40:10 -07:00 |
|
Norman Maurer
|
bf2d821529
|
Remove unused code
|
2017-05-01 13:26:04 -07:00 |
|
Norman Maurer
|
480d29ddc8
|
Let ChannelHandler throw errors for inbound operations
|
2017-04-30 20:10:11 +02:00 |
|
Norman Maurer
|
cbb414edff
|
Allow to handle user events
|
2017-04-30 19:52:41 +02:00 |
|
Norman Maurer
|
5bee1c7bcd
|
Correctly implement TailHandler and ensure we also forward close operations
|
2017-04-30 18:26:44 +02:00 |
|
Norman Maurer
|
0981cfd9b6
|
Add futures / promises
|
2017-04-30 18:00:41 +02:00 |
|
Norman Maurer
|
83558362ae
|
Keep track of pending flushes
|
2017-04-30 16:12:35 +02:00 |
|
Norman Maurer
|
a8b722b97e
|
Add very basic netty like abstraction on top of the socket / selector implementation
|
2017-04-30 15:04:14 +02:00 |
|
Norman Maurer
|
269d279f8c
|
Correctly put initialization code in ifdefs so it compiles on macOS and Linux
|
2017-04-28 17:57:06 +02:00 |
|
Norman Maurer
|
2b92e3760d
|
Correctly handle EINTR for write(...), read(...) and accept()
|
2017-04-28 17:43:08 +02:00 |
|
Norman Maurer
|
65e2f38400
|
Use optionals to signale EWOULDBLOCK
|
2017-04-28 17:29:20 +02:00 |
|
Johannes Weiß
|
adbb91037a
|
make socket binding generic (reduce repetition)
|
2017-04-28 15:06:10 +01:00 |
|
Johannes Weiß
|
93c1aa9864
|
remove memcpy uses
|
2017-04-28 15:47:49 +01:00 |
|
Johannes Weiß
|
a9c66f2a3b
|
rebind memory correctly
|
2017-04-28 15:47:29 +01:00 |
|
Johannes Weiß
|
b61479939b
|
initialise memory correctly
|
2017-04-28 15:47:07 +01:00 |
|
Johannes Weiß
|
2a28806f16
|
size vs stride fix
|
2017-04-28 15:46:52 +01:00 |
|
Johannes Weiß
|
c223889cd5
|
improve sockaddr_* memory handling
|
2017-04-28 15:01:11 +01:00 |
|