[reSIProcate] Help me to understand this code in BasicCall.cx x
Scott Godin
slgodin at icescape.com
Wed Feb 23 13:58:05 CST 2005
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 at gmail.com]
Sent: Wednesday, February 23, 2005 2:09 PM
To: resiprocate-devel at list.sipfoundry.org
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 at list.sipfoundry.org
https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
More information about the resiprocate-devel
mailing list