|
reSIProcate
SIP stack, Dialog Usage Manager and related libraries
|
An interface class for elements that use an FdSet to watch for IO. More...
#include <FdSetIOObserver.hxx>
Public Member Functions | |
| FdSetIOObserver () | |
| virtual | ~FdSetIOObserver () |
| virtual void | buildFdSet (FdSet &fdset)=0 |
| Add any FDs that we are interested in watching to an fdset, with the understanding that a select() call will be made immediately after. | |
| virtual unsigned int | getTimeTillNextProcessMS ()=0 |
| Returns the maximum timeout this object is willing to tolerate on the select call that is to be made, to prevent starvation of work that is not IO-based. | |
| virtual void | process (FdSet &fdset)=0 |
| Called once select() returns; this allows this object to inspect which of its FDs are ready, and perform any necessary IO with them. | |
An interface class for elements that use an FdSet to watch for IO.
This is in contrast to an element that uses event-driven IO.
Definition at line 12 of file FdSetIOObserver.hxx.
|
inline |
Definition at line 15 of file FdSetIOObserver.hxx.
|
inlinevirtual |
Definition at line 16 of file FdSetIOObserver.hxx.
|
pure virtual |
Add any FDs that we are interested in watching to an fdset, with the understanding that a select() call will be made immediately after.
| fdset | The FdSet to be augmented |
Implemented in resip::SipStack, resip::DtlsTransport, resip::TcpBaseTransport, resip::UdpTransport, and resip::Transport.
|
pure virtual |
Returns the maximum timeout this object is willing to tolerate on the select call that is to be made, to prevent starvation of work that is not IO-based.
Implemented in resip::SipStack, and resip::Transport.
|
pure virtual |
Called once select() returns; this allows this object to inspect which of its FDs are ready, and perform any necessary IO with them.
| fdset | The FdSet after the call to select(). |
Implemented in resip::SipStack, resip::DtlsTransport, resip::TcpBaseTransport, resip::UdpTransport, and resip::Transport.