Trigger an event on a kqueue
Trigger an event on a kqueue
- Subject: Trigger an event on a kqueue
- From: Marco Bambini <email@hidden>
- Date: Wed, 10 Feb 2010 10:36:53 +0100
Hello,
I am developing a server and I am currently using kqueue for read/write events.
I am trying to trigger a socket event on a kqueue without success.
In reply to a QUIT command sent to the server I would like to trigger a close event for that socket.
I tried with both:
shutdown(connfd, SHUT_RDWR);
and with
close (connfd)
but when there are a lot of concurrent connections/disconnections a lot of CLOSE events are missed from the kqueue.
Anyone has an idea about a possible solution?
Thanks a lot,
Marco Bambini _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden