[reSIProcate] sockets and windows events

Christian_Gavin at logitech.com Christian_Gavin at logitech.com
Tue Feb 15 10:49:06 CST 2005


Hi,

I am planning to run reSIProcate in a separate thread on Windows. I also
need to have this thread be notified of events that I set. In reSIP
examples, the event loop is built with a

     int err = fdset.selectMilliSeconds(100);

statement then incoming data is processed with process( ). On Windows, a
program waits for events with WaitForMultipleObjects( ).

How would I combine both into one event loop waiting for sockets to be read
and windows events? Could I replace selectMilliSeconds with WSAEventSelect
and use WaitForMultipleObjects ? Whenever a socket is ready to be read I
would call process( ) on the reSIP stack.

Thanks!

Christian Gavin
Logitech Inc.




More information about the resiprocate-devel mailing list