diff options
| author | Drahflow <drahflow@gmx.de> | 2013-09-04 00:30:15 +0200 |
|---|---|---|
| committer | Drahflow <drahflow@gmx.de> | 2013-09-04 00:30:15 +0200 |
| commit | 20efe1efeb3c62b884ccc16fd77e3b4c430c3ed9 (patch) | |
| tree | f95adf63f534e734579ffca9e314ed94880ce572 /elymas/lib/sys/linux.ey | |
| parent | 17245cb03fb02ae9c6b0409c1e6bdb538322a498 (diff) | |
buffered polling tcp/ip server
Diffstat (limited to 'elymas/lib/sys/linux.ey')
| -rw-r--r-- | elymas/lib/sys/linux.ey | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/elymas/lib/sys/linux.ey b/elymas/lib/sys/linux.ey index 0c00fc9..f672c8d 100644 --- a/elymas/lib/sys/linux.ey +++ b/elymas/lib/sys/linux.ey @@ -359,8 +359,9 @@ # 0 -> callback data # 1 -> event mask - # 2 -> fd to add - # 3 -> epoll fd + # 2 -> fd to modify + # 3 -> what to do (i.e. EPOLLCTLADD and friends) + # 4 -> epoll fd # 0 <- raw return value { ==callbackData ==eventMask ==fd ==action ==epollFd # struct epoll_event takes 16 bytes on a x86 @@ -384,7 +385,7 @@ [ buf ret { < ->u64 ==events ->u64 ==data - > } rep -- ] + > -01 } rep -- ] ret } /wait deffd > /epoll defvd |
