< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] sockets and windows events


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.