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

This class abstracts the Unix system call "poll". More...

#include <Poll.hxx>

Classes

class  FDEntry
 

Public Member Functions

 Poll ()
 
 ~Poll ()
 
const std::vector< Poll::FDEntry * > & wait (int timeoutMilliSeconds)
 defined(RESIP_POLL_EXTERN) } {
 

Static Public Member Functions

static int findFDInWaitResult (int fd, const std::vector< Poll::FDEntry * > &waitResult)
 

Friends

class Poll::FDEntry
 

Detailed Description

This class abstracts the Unix system call "poll".

It offers implementations in terms of "poll" itself, "epoll", and "select". (Respectively ifdef'd by RESIP_POLL_IMPL_POLL, RESIP_POLL_IMPL_SELECT, and RESIP_POLL_IMPL_EPOLL.) File descriptors are wrapped by inner class "Poll::FDEntry". The actual "poll" call is represented by method "wait", or if an application wants to control the system call directly, it can instead use methods "beforeExternWait", "setEntryFDStateForExternWait", and "afterExternWait". (The latter are selected by define-ing RESIP_POLL_EXTERN.)

Definition at line 25 of file Poll.hxx.

Constructor & Destructor Documentation

◆ Poll()

Poll::Poll ( )

Definition at line 201 of file Poll.cxx.

◆ ~Poll()

Poll::~Poll ( )

Definition at line 206 of file Poll.cxx.

Member Function Documentation

◆ findFDInWaitResult()

int Poll::findFDInWaitResult ( int  fd,
const std::vector< Poll::FDEntry * > &  waitResult 
)
static

Definition at line 179 of file Poll.cxx.

◆ wait()

const std::vector< Poll::FDEntry * > & resip::Poll::wait ( int  timeoutMilliSeconds)

defined(RESIP_POLL_EXTERN) } {

Friends And Related Symbol Documentation

◆ Poll::FDEntry

friend class Poll::FDEntry
friend

Definition at line 110 of file Poll.hxx.


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