From 20efe1efeb3c62b884ccc16fd77e3b4c430c3ed9 Mon Sep 17 00:00:00 2001 From: Drahflow Date: Wed, 4 Sep 2013 00:30:15 +0200 Subject: buffered polling tcp/ip server --- elymas/lib/sys/linux.ey | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'elymas/lib/sys/linux.ey') 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 -- cgit v1.2.3