You are not logged in.
i want to write a socket server with epool using c language
but , not have good logic example..
please show me your code..
thanks............
Last edited by zqyking (2010-06-19 09:51:11)
Offline
'man 7 epoll' has an example in it.
Offline
'man 7 epoll' has an example in it.
thanks.
Offline
Hey
if your still interested in this topic ...
a few month ago i was in the mood to create a threaded epool server
it should handle a lot of connections with a pool pool of worker threads
the base code works just fine:
http://github.com/b52/trash/blob/master/server.c
greets b52
srsly?
Offline
Offline
Nice to you hear you like me code
Generally I would use epoll over poll, cause it scales very good for a large amount of connections but has a lower load as well with only few connections.
Besides its quite easy to work with epoll, give it a go!
srsly?
Offline
I know question was about epool. But maybe libevent ? http://monkey.org/~provos/libevent/
Offline