psocksxx
1.0.0
|
base class for socket stream controller classes More...
#include <iosocks.h>
Public Member Functions | |
virtual | ~iosocks () throw () |
destructor More... | |
bool | timedout () const throw () |
get the timed-out status flag value More... | |
const timeval * | timeout (time_t sec, suseconds_t usec) throw () |
set the timeout value for stream communications More... | |
void * | clear_timeout () throw () |
clear the timeout value More... | |
Protected Member Functions | |
iosocks () throw () | |
empty default constructor More... | |
base class for socket stream controller classes
This class holds the common methods for socket stream controller classes.
|
inlinevirtual |
destructor
Does nothing.
|
inlineprotected |
empty default constructor
Empty default constructor so that derived classes through virtual inheritance does not have to call the constructor.
void * psocksxx::iosocks::clear_timeout | ( | ) | ||
throw | ( | |||
) |
clear the timeout value
0
) after clearing the timeoutThis will clear any timeout values set for this stream using timeout().
bool psocksxx::iosocks::timedout | ( | ) | const | |
throw | ( | |||
) |
get the timed-out status flag value
true
if timed-out flag is set or false
otherwise.Returns the timed-out status for the associated socket stream buffer.
const timeval * psocksxx::iosocks::timeout | ( | time_t | sec, |
suseconds_t | usec | ||
) | |||
throw | ( | ||
) |
set the timeout value for stream communications
sec | seconds |
usec | microseconds |
Wrapper method for sockstreambuf::timeout() to set the timeout value for stream communications.