reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::SelectInterruptor Class Reference

Used to 'artificially' interrupt a select call. More...

#include <SelectInterruptor.hxx>

Inheritance diagram for resip::SelectInterruptor:
[legend]

Public Member Functions

 SelectInterruptor ()
 
virtual ~SelectInterruptor ()
 
virtual void handleProcessNotification ()
 Called by the stack when messages are posted to it.
 
void interrupt ()
 cause the 'artificial' fd to signal
 
void buildFdSet (FdSet &fdset)
 Used to add the 'artificial' fd to the fdset that will be responsible for interrupting a subsequent select call.
 
void process (FdSet &fdset)
 cleanup signalled fd
 
virtual void processPollEvent (FdPollEventMask mask)
 Called by PollGrp when activity is possible.
 
Socket getReadSocket () const
 
- Public Member Functions inherited from resip::AsyncProcessHandler
virtual ~AsyncProcessHandler ()
 
- Public Member Functions inherited from resip::FdPollItemIf
 FdPollItemIf ()
 
virtual ~FdPollItemIf ()
 

Protected Member Functions

void processCleanup ()
 

Detailed Description

Used to 'artificially' interrupt a select call.

Definition at line 14 of file SelectInterruptor.hxx.

Constructor & Destructor Documentation

◆ SelectInterruptor()

SelectInterruptor::SelectInterruptor ( )

Definition at line 14 of file SelectInterruptor.cxx.

◆ ~SelectInterruptor()

SelectInterruptor::~SelectInterruptor ( )
virtual

Definition at line 48 of file SelectInterruptor.cxx.

Member Function Documentation

◆ buildFdSet()

void SelectInterruptor::buildFdSet ( FdSet &  fdset)

Used to add the 'artificial' fd to the fdset that will be responsible for interrupting a subsequent select call.

Definition at line 65 of file SelectInterruptor.cxx.

◆ getReadSocket()

Socket resip::SelectInterruptor::getReadSocket ( ) const
inline

Definition at line 49 of file SelectInterruptor.hxx.

◆ handleProcessNotification()

void SelectInterruptor::handleProcessNotification ( )
virtual

Called by the stack when messages are posted to it.

Calls interrupt.

Implements resip::AsyncProcessHandler.

Definition at line 59 of file SelectInterruptor.cxx.

◆ interrupt()

void SelectInterruptor::interrupt ( )

cause the 'artificial' fd to signal

Definition at line 111 of file SelectInterruptor.cxx.

◆ process()

void SelectInterruptor::process ( FdSet &  fdset)

cleanup signalled fd

Definition at line 92 of file SelectInterruptor.cxx.

◆ processCleanup()

void SelectInterruptor::processCleanup ( )
protected

Definition at line 75 of file SelectInterruptor.cxx.

◆ processPollEvent()

void SelectInterruptor::processPollEvent ( FdPollEventMask  mask)
virtual

Called by PollGrp when activity is possible.

Implements resip::FdPollItemIf.

Definition at line 101 of file SelectInterruptor.cxx.


The documentation for this class was generated from the following files: