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

RE: [reSIProcate] Help me to understand this code in BasicCall.cx x


Here's my attempt:

buildFdSet - iterates through all of the stacks socket read/write handles
and builds a list to pass to the select function.

selectMilliSeconds - Waits for one of the handles returned from buildFdSet
to be signaled (ie. inbound SIP message) - waits for a specified number of
milliseconds.

getTimeTillNextProcessMs() - iterates through all timers to see when the
next time that the stack will need to do work to service timers

process - iterates through all transports FIFOs and timers and processes
inbound and/or SIP messages and timer expirations.  ie.  Does all of the
work!

Hope this helps,

Scott

-----Original Message-----
From: Jia Pu [mailto:very.funny.j@xxxxxxxxx] 
Sent: Wednesday, February 23, 2005 2:09 PM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] Help me to understand this code in BasicCall.cxx

     if (!uacShutdownHandler.dumShutDown)
     {
        FdSet fdset;
        dumUac->buildFdSet(fdset);
        int err =
fdset.selectMilliSeconds(dumUac->getTimeTillNextProcessMS());
        assert ( err != -1 );
        dumUac->process(fdset);
     }


Can someone explain the purpose of this code? Thanks.
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel