|
fipa_services
|
A unidirectional, outgoing udt connection that allows to send fipa letter to a receiver. More...
#include <OutgoingConnection.hpp>
Public Member Functions | |
| OutgoingConnection () | |
| OutgoingConnection (const std::string &ipaddress, uint16_t port) | |
| OutgoingConnection (const Address &address) | |
| virtual | ~OutgoingConnection () |
| virtual void | connect (const std::string &ipaddress, uint16_t port) |
| void | sendData (const std::string &data, int ttl=-1, bool inorder=true) const |
| virtual 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) | |
| 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< OutgoingConnection > | Ptr |
Protected Attributes inherited from fipa::services::transports::OutgoingConnection | |
| int | mTTL |
Protected Attributes inherited from fipa::services::transports::Connection | |
| Address | mAddress |
A unidirectional, outgoing udt connection that allows to send fipa letter to a receiver.
| fipa::services::transports::udt::OutgoingConnection::OutgoingConnection | ( | ) |
| fipa::services::transports::udt::OutgoingConnection::OutgoingConnection | ( | const std::string & | ipaddress, |
| uint16_t | port | ||
| ) |
| fipa::services::transports::udt::OutgoingConnection::OutgoingConnection | ( | const Address & | address | ) |
|
virtual |
Reimplemented from fipa::services::transports::OutgoingConnection.
|
virtual |
Connect to ipaddress and port
| ipaddress | IP as string |
| port | Port number |
| if | connection cannot be established |
Implements fipa::services::transports::OutgoingConnection.
|
virtual |
Send data via this connection
| std::runtime_error | if transport failed |
Implements fipa::services::transports::OutgoingConnection.
| void fipa::services::transports::udt::OutgoingConnection::sendData | ( | const std::string & | data, |
| int | ttl = -1, |
||
| bool | inorder = true |
||
| ) | const |
Send message
| data | string as data container |
| ttl | Time to live for this message, default is unlimited |
| inorder | Set to true if message you be received only in the right order |
1.8.13