fipa_services
Public Member Functions | List of all members
fipa::services::transports::tcp::OutgoingConnection Class Reference

A unidirectional, outgoing tcp connection that allows to send fipa letter to a receiver. More...

#include <OutgoingConnection.hpp>

Inheritance diagram for fipa::services::transports::tcp::OutgoingConnection:
fipa::services::transports::OutgoingConnection fipa::services::transports::Connection

Public Member Functions

 OutgoingConnection ()
 
 OutgoingConnection (const std::string &ipaddress, uint16_t port)
 
 OutgoingConnection (const Address &address)
 
void connect (const std::string &ipaddress, uint16_t port)
 
void send (const std::string &data)
 
- Public Member Functions inherited from fipa::services::transports::OutgoingConnection
 OutgoingConnection ()
 
 OutgoingConnection (const std::string &ipaddress, uint16_t port)
 
 OutgoingConnection (const Address &address)
 
virtual ~OutgoingConnection ()
 
void setTTL (int ttl)
 
int getTTL () const
 
- Public Member Functions inherited from fipa::services::transports::Connection
 Connection ()
 
 Connection (const std::string &ip, uint16_t port, const std::string &protocol="udt")
 
 Connection (const Address &address)
 
uint16_t getPort () const
 
std::string getIP () const
 
Address getAddress () const
 
bool operator== (const Connection &other) const
 

Additional Inherited Members

- Public Types inherited from fipa::services::transports::OutgoingConnection
typedef boost::shared_ptr< OutgoingConnectionPtr
 
- Protected Attributes inherited from fipa::services::transports::OutgoingConnection
int mTTL
 
- Protected Attributes inherited from fipa::services::transports::Connection
Address mAddress
 

Detailed Description

A unidirectional, outgoing tcp connection that allows to send fipa letter to a receiver.

Constructor & Destructor Documentation

◆ OutgoingConnection() [1/3]

fipa::services::transports::tcp::OutgoingConnection::OutgoingConnection ( )

◆ OutgoingConnection() [2/3]

fipa::services::transports::tcp::OutgoingConnection::OutgoingConnection ( const std::string &  ipaddress,
uint16_t  port 
)

◆ OutgoingConnection() [3/3]

fipa::services::transports::tcp::OutgoingConnection::OutgoingConnection ( const Address address)

Member Function Documentation

◆ connect()

void fipa::services::transports::tcp::OutgoingConnection::connect ( const std::string &  ipaddress,
uint16_t  port 
)
virtual

Connect to ipaddress and port

Parameters
ipaddressIP as string
portPort number
Exceptions
ifconnection cannot be established

Implements fipa::services::transports::OutgoingConnection.

◆ send()

void fipa::services::transports::tcp::OutgoingConnection::send ( const std::string &  data)
virtual

Send data

Parameters
data

Implements fipa::services::transports::OutgoingConnection.


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