IBR-DTNSuite  0.8
ibrcommon::tcpclient Class Reference

#include <tcpclient.h>

Inheritance diagram for ibrcommon::tcpclient:
Collaboration diagram for ibrcommon::tcpclient:

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, size_t timeout=0)
void open (const std::string &address, const int port, size_t timeout=0)
virtual ~tcpclient ()

Detailed Description

Definition at line 17 of file tcpclient.h.


Constructor & Destructor Documentation

create a not connected tcpclient

Returns:

Definition at line 26 of file tcpclient.cpp.

Connect the tcpclient to a named socket

Parameters:
socketto 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,
size_t  timeout = 0 
)

Connect the tcpclient to a address and port (IP)

Parameters:
address
port
Returns:

destructor of the tcpclient

Returns:

Definition at line 168 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 dtn::net::TCPConnection::connect(), main(), and tcpclient().

Here is the call graph for this function:

void ibrcommon::tcpclient::open ( const std::string &  address,
const int  port,
size_t  timeout = 0 
)

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