My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::FdSet Class Reference

Public Member Functions

 FdSet ()
 
virtual ~FdSet ()
 
void zeroReadFdSet ()
 
void zeroWriteFdSet ()
 
void zeroExceptionFdSet ()
 
void registerReadFd (int fd)
 
void registerWriteFd (int fd)
 
void registerExceptionFd (int fd)
 
void clearFromReadFdSet (int fd)
 
void clearFromWriteFdSet (int fd)
 
void clearFromExceptionFdSet (int fd)
 
fd_set * readFdSet ()
 
fd_set * writeFdSet ()
 
fd_set * exceptionFdSet ()
 
int size ()
 
bool isSetInRead (int fd)
 
bool isSetInWrite (int fd)
 
bool isSetInException (int fd)
 
void clear ()
 
void clear (int fd)
 
void print ()
 

Constructor & Destructor Documentation

FdSet::FdSet ( )

Constructor.

....................................................................... Constructor.

FdSet::~FdSet ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

void FdSet::clear ( )

Clear all fd sets

....................................................................... Zero our read and write fd sets.

void FdSet::clear ( int  fd)

Clear an fd from all fd sets

....................................................................... Clear an fd from both read and write fd sets.

void FdSet::clearFromExceptionFdSet ( int  fd)

Remove a file descriptor from the mask of descriptors to be watched for exceptions

....................................................................... Remove a file descriptor from the mask of descriptors to be watched for exceptionability.

void FdSet::clearFromReadFdSet ( int  fd)

Remove a file descriptor from the mask of descriptors to be watched for readability.

....................................................................... Remove a file descriptor from the mask of descriptors to be watched for readability.

void FdSet::clearFromWriteFdSet ( int  fd)

Remove a file descriptor from the mask of descriptors to be watched for writeability.

....................................................................... Remove a file descriptor from the mask of descriptors to be watched for writeability.

fd_set * FdSet::exceptionFdSet ( )

Return a pointer to the set of exception file descriptors

....................................................................... Return a pointer to the set of exception file descriptors

bool FdSet::isSetInException ( int  fd)

Return true if the file descriptor is set in the exception set.

....................................................................... Return true if the file descriptor is set in the exception set.

bool FdSet::isSetInRead ( int  fd)

Return true if the file descriptor is set in the read set.

....................................................................... Return true if the file descriptor is set in the read set.

bool FdSet::isSetInWrite ( int  fd)

Return true if the file descriptor is set in the write set.

....................................................................... Return true if the file descriptor is set in the write set.

void FdSet::print ( )

Debugging method

fd_set * FdSet::readFdSet ( )

Return a pointer to the set of read file descriptors

....................................................................... Return a pointer to the set of read file descriptors

void FdSet::registerExceptionFd ( int  fd)

Private method to register a file descriptor to be watched for exceptions

....................................................................... Private method to register a file descriptor to be watched for output.

void FdSet::registerReadFd ( int  fd)

Private method to register a file descriptor to be watched for input.

....................................................................... Private method to register a file descriptor to be watched for input.

void FdSet::registerWriteFd ( int  fd)

Private method to register a file descriptor to be watched for output availability.

....................................................................... Private method to register a file descriptor to be watched for output.

int FdSet::size ( )

Return the size of the largest file descriptor in the set.

....................................................................... Return the size of the largest file descriptor in the set.

fd_set * FdSet::writeFdSet ( )

Return a pointer to the set of write file descriptors

....................................................................... Return a pointer to the set of write file descriptors

void FdSet::zeroExceptionFdSet ( )

Private method to zero the set of descriptors to be watched for exceptions.

....................................................................... Private method to zero the set of descriptors to be watched for exceptions

void FdSet::zeroReadFdSet ( )

Private method to zero the set of descriptors to be watched for readability.

....................................................................... Private method to zero the set of descriptors to be watched for readability.

void FdSet::zeroWriteFdSet ( )

Private method to zero the set of descriptors to be watched for writability.

....................................................................... Private method to zero the set of descriptors to be watched for readability.


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