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

Object-oriented wrapper for your platform's file-descriptor set. More...

#include <Socket.hxx>

Public Member Functions

 FdSet ()
 
int select ()
 
int select (struct timeval &tv)
 
int selectMilliSeconds (unsigned long ms)
 
bool readyToRead (Socket fd)
 
bool readyToWrite (Socket fd)
 
bool hasException (Socket fd)
 
void setRead (Socket fd)
 
void setWrite (Socket fd)
 
void setExcept (Socket fd)
 
void clear (Socket fd)
 
void reset ()
 

Public Attributes

fd_set read
 
fd_set write
 
fd_set except
 
int size
 
int numReady
 

Detailed Description

Object-oriented wrapper for your platform's file-descriptor set.

Definition at line 161 of file Socket.hxx.

Constructor & Destructor Documentation

◆ FdSet()

resip::FdSet::FdSet ( )
inline

Definition at line 164 of file Socket.hxx.

Member Function Documentation

◆ clear()

void resip::FdSet::clear ( Socket  fd)
inline

Definition at line 239 of file Socket.hxx.

◆ hasException()

bool resip::FdSet::hasException ( Socket  fd)
inline

Definition at line 199 of file Socket.hxx.

◆ readyToRead()

bool resip::FdSet::readyToRead ( Socket  fd)
inline

Definition at line 189 of file Socket.hxx.

◆ readyToWrite()

bool resip::FdSet::readyToWrite ( Socket  fd)
inline

Definition at line 194 of file Socket.hxx.

◆ reset()

void resip::FdSet::reset ( )
inline

Definition at line 246 of file Socket.hxx.

◆ select() [1/2]

int resip::FdSet::select ( )
inline

Definition at line 171 of file Socket.hxx.

◆ select() [2/2]

int resip::FdSet::select ( struct timeval &  tv)
inline

Definition at line 176 of file Socket.hxx.

◆ selectMilliSeconds()

int resip::FdSet::selectMilliSeconds ( unsigned long  ms)
inline

Definition at line 181 of file Socket.hxx.

◆ setExcept()

void resip::FdSet::setExcept ( Socket  fd)
inline

Definition at line 227 of file Socket.hxx.

◆ setRead()

void resip::FdSet::setRead ( Socket  fd)
inline

Definition at line 204 of file Socket.hxx.

◆ setWrite()

void resip::FdSet::setWrite ( Socket  fd)
inline

Definition at line 216 of file Socket.hxx.

Member Data Documentation

◆ except

fd_set resip::FdSet::except

Definition at line 258 of file Socket.hxx.

◆ numReady

int resip::FdSet::numReady

Definition at line 260 of file Socket.hxx.

◆ read

fd_set resip::FdSet::read

Definition at line 256 of file Socket.hxx.

◆ size

int resip::FdSet::size

Definition at line 259 of file Socket.hxx.

◆ write

fd_set resip::FdSet::write

Definition at line 257 of file Socket.hxx.


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