fipa_services
OutgoingConnection.hpp
Go to the documentation of this file.
1 #ifndef FIPA_SERVICES_TRANSPORTS_UDT_OUTGOING_CONNECTION_HPP
2 #define FIPA_SERVICES_TRANSPORTS_UDT_OUTGOING_CONNECTION_HPP
3 
4 #include <udt/udt.h>
5 #include <stdexcept>
6 #include <base-logging/Logging.hpp>
7 #include <fipa_services/transports/OutgoingConnection.hpp>
8 
9 namespace fipa {
10 namespace services {
11 namespace transports {
12 namespace udt {
13 
19 {
20  UDTSOCKET mSocket;
21 
22 public:
24 
25  OutgoingConnection(const std::string& ipaddress, uint16_t port);
26 
27  OutgoingConnection(const Address& address);
28 
29  virtual ~OutgoingConnection();
30 
37  virtual void connect(const std::string& ipaddress, uint16_t port);
38 
45  void sendData(const std::string& data, int ttl = -1, bool inorder = true) const;
46 
51  virtual void send(const std::string& data);
52 };
53 } // end namespace udt
54 } // end namespace transport
55 } // end namespace services
56 } // end namespace fipa
57 #endif // FIPA_SERVICES_TRANSPORTS_UDT_OUTGOING_CONNECTION_HPP
OutgoingConnection()
Definition: OutgoingConnection.cpp:13
A unidirectional, outgoing connection that allows to send fipa letters to a receiver.
Definition: OutgoingConnection.hpp:15
Communication address specified by IP, port, and protocol.
Definition: Address.hpp:15
virtual void send(const std::string &data)
Definition: OutgoingConnection.cpp:83
virtual void connect(const std::string &ipaddress, uint16_t port)
Definition: OutgoingConnection.cpp:35
void sendData(const std::string &data, int ttl=-1, bool inorder=true) const
Definition: OutgoingConnection.cpp:71
A unidirectional, outgoing udt connection that allows to send fipa letter to a receiver.
Definition: OutgoingConnection.hpp:18
Definition: DistributedServiceDirectory.cpp:5
virtual ~OutgoingConnection()
Definition: OutgoingConnection.cpp:29