Classes | Public Member Functions

ibrcommon::tcpclient Class Reference

#include <tcpclient.h>

Inherits ibrcommon::tcpstream.

Collaboration diagram for ibrcommon::tcpclient:
Collaboration graph
[legend]

List of all members.

Classes

class  SocketException

Public Member Functions

 tcpclient ()
 tcpclient (const ibrcommon::File &socket)
void open (const ibrcommon::File &socket)
 tcpclient (const std::string &address, const int port)
void open (const std::string &address, const int port)
virtual ~tcpclient ()

Detailed Description

Definition at line 17 of file tcpclient.h.


Constructor & Destructor Documentation

ibrcommon::tcpclient::tcpclient (  ) 

create a not connected tcpclient

Returns:

Definition at line 26 of file tcpclient.cpp.

ibrcommon::tcpclient::tcpclient ( const ibrcommon::File socket  ) 

Connect the tcpclient to a named socket

Parameters:
socket to use
Returns:

Definition at line 30 of file tcpclient.cpp.

References open().

Here is the call graph for this function:

ibrcommon::tcpclient::tcpclient ( const std::string &  address,
const int  port 
)

Connect the tcpclient to a address and port (IP)

Parameters:
address 
port 
Returns:
ibrcommon::tcpclient::~tcpclient (  )  [virtual]

destructor of the tcpclient

Returns:

Definition at line 127 of file tcpclient.cpp.


Member Function Documentation

void ibrcommon::tcpclient::open ( const ibrcommon::File socket  ) 

Definition at line 35 of file tcpclient.cpp.

References ibrcommon::tcpstream::_socket, and ibrcommon::File::getPath().

Referenced by main(), dtn::net::TCPConnection::setup(), and tcpclient().

Here is the call graph for this function:

void ibrcommon::tcpclient::open ( const std::string &  address,
const int  port 
)

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