Public Member Functions

ibrcommon::tcpserver Class Reference

#include <tcpserver.h>

List of all members.

Public Member Functions

 tcpserver (const ibrcommon::File &socket)
 tcpserver (NetInterface net, int port, bool reuseaddr=true)
virtual ~tcpserver ()
tcpstreamaccept ()
void close ()
void shutdown ()

Detailed Description

Definition at line 19 of file tcpserver.h.


Constructor & Destructor Documentation

ibrcommon::tcpserver::tcpserver ( const ibrcommon::File socket  ) 

Definition at line 25 of file tcpserver.cpp.

References ibrcommon::File::getPath().

Here is the call graph for this function:

ibrcommon::tcpserver::tcpserver ( NetInterface  net,
int  port,
bool  reuseaddr = true 
)
Parameters:
address the address to listen to
port the port to listen to

Definition at line 117 of file tcpserver.cpp.

References ibrcommon::NetInterface::getAddress().

Here is the call graph for this function:

ibrcommon::tcpserver::~tcpserver (  )  [virtual]

Destructor

Definition at line 227 of file tcpserver.cpp.

References close().

Here is the call graph for this function:


Member Function Documentation

tcpstream * ibrcommon::tcpserver::accept (  ) 

Accept a new connection.

Returns:
A socket for the connection.

Definition at line 243 of file tcpserver.cpp.

Referenced by dtn::net::TCPConvergenceLayer::Server::accept(), and dtn::daemon::ApiServer::componentRun().

void ibrcommon::tcpserver::close (  ) 
void ibrcommon::tcpserver::shutdown (  ) 

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