rasdaman complete source
Public Member Functions | List of all members
akg::Selector Class Reference

#include <akgnet_selector.hh>

Public Member Functions

 Selector () throw ()
 Default constructor. More...
 
void setTimeout (int sec, int milisec) throw ()
 Sets the timeout interval. More...
 
void disableTimeout () throw ()
 Disables the timeout. More...
 
void setRead (int fdescr) throw ()
 Registers the file descriptor for reading. More...
 
void clearRead (int fdescr) throw ()
 Unregisters the file descriptor from reading. More...
 
void setWrite (int fdescr) throw ()
 Registers the file descriptor for writing. More...
 
void clearWrite (int fdescr) throw ()
 Unregisters the file descriptor from writing. More...
 
int operator() () throw ()
 The real 'select' operation. The return value is the one of 'select'. More...
 
bool isRead (int fdescr) throw ()
 Returns true if the file descriptor is registered for read. More...
 
bool isWrite (int fdescr) throw ()
 Returns true if the file descriptor is registered for write. More...
 
void closeForcedAllFileDescriptors () throw ()
 

Detailed Description

This class envelops the 'select' function of the C-library

Constructor & Destructor Documentation

akg::Selector::Selector ( )
throw (
)

Default constructor.

Member Function Documentation

void akg::Selector::clearRead ( int  fdescr)
throw (
)

Unregisters the file descriptor from reading.

void akg::Selector::clearWrite ( int  fdescr)
throw (
)

Unregisters the file descriptor from writing.

void akg::Selector::closeForcedAllFileDescriptors ( )
throw (
)

Closes all file descriptors. Usefull when forking so child processes don't inherit this file descriptors

void akg::Selector::disableTimeout ( )
throw (
)

Disables the timeout.

bool akg::Selector::isRead ( int  fdescr)
throw (
)

Returns true if the file descriptor is registered for read.

bool akg::Selector::isWrite ( int  fdescr)
throw (
)

Returns true if the file descriptor is registered for write.

int akg::Selector::operator() ( )
throw (
)

The real 'select' operation. The return value is the one of 'select'.

void akg::Selector::setRead ( int  fdescr)
throw (
)

Registers the file descriptor for reading.

void akg::Selector::setTimeout ( int  sec,
int  milisec 
)
throw (
)

Sets the timeout interval.

void akg::Selector::setWrite ( int  fdescr)
throw (
)

Registers the file descriptor for writing.


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