-
Website
http://blog.kovyrin.net -
Original page
http://blog.kovyrin.net/2006/04/13/epoll-asynchronous-network-programming/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
for you health
3 comments · 1 points
-
jamiew
1 comment · 6 points
-
qu1j0t3
1 comment · 1 points
-
mkv to dvd
1 comment · 1 points
-
Scoundrel
9 comments · 1 points
-
-
Popular Threads
OT: Great tutorial, even though you never declared events.
Well done Scoundrel.
Btw, why must it avoid nonblocking on function handle_io_on_socket? It accessing db like MySQL nonblocking?
Just use google's translator. CLick this link to see a translation (should help a little):
http://translate.google.com/translate?hl=en&...
Thanks for the info for epoll. These are helpful.
I had one question regarding the user data variable given as part of epoll_event structure.
If only "fd" is used for epolling, why are u32/u64 and void pointers provided.
thanks,
Prashanth
This data structure is useful for passing in data that may be useful to the user of the data. For example you can cache data that has been gathered by the connection previously and then store this in a structure which the void *ptr points to. When more data is ready you then have access to the previously stored data which you can add to with the further communication.
James
тем более сейчас джангу перевёл на асинхронный сервер который использует epoll В)
кстати если не ошибаюсь, результатом C10K problem стал сервер lighttpd
Thanks,
Addisu