psocksxx 1.1.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
psocksxx::tcpnsockstream Class Reference

TCP/IP controller class. More...

#include <tcpnsockstream.h>

Inheritance diagram for psocksxx::tcpnsockstream:
psocksxx::nsockstream psocksxx::iosockstream psocksxx::isockstream psocksxx::osockstream psocksxx::iosocks psocksxx::iosocks

Public Member Functions

 tcpnsockstream () throw ( sockexception )
 constructor
 
virtual ~tcpnsockstream () throw ()
 destructor
 
- Public Member Functions inherited from psocksxx::nsockstream
 nsockstream (sockstreambuf::socket_type_t type, sockstreambuf::socket_protocol_t proto) throw ( sockexception )
 constructor
 
 nsockstream (sockstreambuf *ssb) throw ()
 constructor
 
virtual ~nsockstream () throw ()
 destructor
 
void connect (const nsockaddr *saddr) throw ( sockexception, socktimeoutexception )
 connect to a network address
 
void connect (const char *node, unsigned int port) throw ( sockexception, socktimeoutexception )
 connect to a network address
 
void bind (const nsockaddr *saddr, bool reuse_addr=false) throw ( sockexception )
 bind the stream to a network address
 
void listen (int backlog=0) throw ( sockexception )
 make this stream passive and ready to accept connections
 
nsockstreamaccept () throw ( sockexception )
 accept a connection on a listening (passive) stream
 
- Public Member Functions inherited from psocksxx::iosockstream
 iosockstream (sockstreambuf *ssb) throw ()
 constructor
 
virtual ~iosockstream () throw ()
 destructor
 
bool timedout () const throw ()
 get the timed-out status for this stream
 
- Public Member Functions inherited from psocksxx::isockstream
 isockstream (sockstreambuf *ssb) throw ()
 constructor
 
virtual ~isockstream () throw ()
 destructor
 
- Public Member Functions inherited from psocksxx::iosocks
virtual ~iosocks () throw ()
 destructor
 
bool timedout () const throw ()
 get the timed-out status flag value
 
const timeval * timeout (time_t sec, suseconds_t usec) throw ()
 set the timeout value for stream communications
 
void * clear_timeout () throw ()
 clear the timeout value
 
- Public Member Functions inherited from psocksxx::osockstream
 osockstream (sockstreambuf *ssb) throw ()
 constructor
 
virtual ~osockstream () throw ()
 destructor
 

Additional Inherited Members

- Protected Member Functions inherited from psocksxx::iosocks
 iosocks () throw ()
 empty default constructor
 

Detailed Description

TCP/IP controller class.

This acts as the controller for TCP/TP communication streams.

Constructor & Destructor Documentation

◆ tcpnsockstream()

psocksxx::tcpnsockstream::tcpnsockstream ( )
throw (sockexception
)

constructor

Exceptions
psocksxx::sockexceptionsocket exception

Initialise a TCP/IP communication stream.