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

#include <FdPoll.hxx>

Inheritance diagram for resip::FdPollGrp:
[legend]

Public Types

enum  ImplType { FdSetImpl = 0 , PollImpl , EPollImpl }
 

Public Member Functions

 FdPollGrp ()
 
virtual ~FdPollGrp ()
 
virtual const char * getImplName () const =0
 
virtual ImplType getImplType () const =0
 
virtual FdPollItemHandle addPollItem (Socket sock, FdPollEventMask newMask, FdPollItemIf *item)=0
 
virtual void modPollItem (FdPollItemHandle handle, FdPollEventMask newMask)=0
 
virtual void delPollItem (FdPollItemHandle handle)=0
 
virtual bool waitAndProcess (int ms=0)=0
 Wait at most {ms} milliseconds.
 
virtual int getEPollFd () const
 get the epoll-fd (epoll_create()) This is fd (type int), not Socket.
 
virtual void buildFdSet (FdSet &fdSet)=0
 
virtual bool processFdSet (FdSet &fdset)=0
 

Static Public Member Functions

static FdPollGrp * create (const char *implName=NULL)
 factory
 
static const char * getImplList ()
 Return candidate impl names with vertical bar (|) between them Intended for help messages.
 

Protected Member Functions

void processItem (FdPollItemIf *item, FdPollEventMask mask)
 

Detailed Description

Definition at line 71 of file FdPoll.hxx.

Member Enumeration Documentation

◆ ImplType

Enumerator
FdSetImpl 
PollImpl 
EPollImpl 

Definition at line 77 of file FdPoll.hxx.

Constructor & Destructor Documentation

◆ FdPollGrp()

FdPollGrp::FdPollGrp ( )

Definition at line 60 of file FdPoll.cxx.

◆ ~FdPollGrp()

FdPollGrp::~FdPollGrp ( )
virtual

Definition at line 64 of file FdPoll.cxx.

Member Function Documentation

◆ addPollItem()

virtual FdPollItemHandle resip::FdPollGrp::addPollItem ( Socket  sock,
FdPollEventMask  newMask,
FdPollItemIf *  item 
)
pure virtual

Implemented in resip::FdPollImplFdSet.

◆ buildFdSet()

virtual void resip::FdPollGrp::buildFdSet ( FdSet &  fdSet)
pure virtual

Implemented in resip::FdPollImplFdSet.

◆ create()

FdPollGrp * FdPollGrp::create ( const char *  implName = NULL)
static

factory

Definition at line 972 of file FdPoll.cxx.

◆ delPollItem()

virtual void resip::FdPollGrp::delPollItem ( FdPollItemHandle  handle)
pure virtual

Implemented in resip::FdPollImplFdSet.

◆ getEPollFd()

int FdPollGrp::getEPollFd ( ) const
virtual

get the epoll-fd (epoll_create()) This is fd (type int), not Socket.

It may be -1 if epoll is not enabled.

Definition at line 89 of file FdPoll.cxx.

◆ getImplList()

const char * FdPollGrp::getImplList ( )
static

Return candidate impl names with vertical bar (|) between them Intended for help messages.

Definition at line 997 of file FdPoll.cxx.

◆ getImplName()

virtual const char * resip::FdPollGrp::getImplName ( ) const
pure virtual

Implemented in resip::FdPollImplFdSet.

◆ getImplType()

virtual ImplType resip::FdPollGrp::getImplType ( ) const
pure virtual

Implemented in resip::FdPollImplFdSet.

◆ modPollItem()

virtual void resip::FdPollGrp::modPollItem ( FdPollItemHandle  handle,
FdPollEventMask  newMask 
)
pure virtual

Implemented in resip::FdPollImplFdSet.

◆ processFdSet()

virtual bool resip::FdPollGrp::processFdSet ( FdSet &  fdset)
pure virtual

Implemented in resip::FdPollImplFdSet.

◆ processItem()

void FdPollGrp::processItem ( FdPollItemIf *  item,
FdPollEventMask  mask 
)
protected

Definition at line 69 of file FdPoll.cxx.

◆ waitAndProcess()

virtual bool resip::FdPollGrp::waitAndProcess ( int  ms = 0)
pure virtual

Wait at most {ms} milliseconds.

If any file activity has already occurs or occurs before {ms} expires, then FdPollItem will be informed (via cb method) and this method will return. Returns true iff any file activity occured. ms<0: wait forever, ms=0: don't wait, ms>0: wait this long NOTE: "forever" may be a little as 60sec or as much as forever

Implemented in resip::FdPollImplFdSet.


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