fipa_services
OutgoingConnection.hpp
Go to the documentation of this file.
1 #ifndef FIPA_SERVICES_TRANSPORTS_TCP_OUTGOING_CONNECTION_HPP
2 #define FIPA_SERVICES_TRANSPORTS_TCP_OUTGOING_CONNECTION_HPP
3 
4 #include <boost/asio.hpp>
5 #include <fipa_services/transports/OutgoingConnection.hpp>
6 
7 namespace fipa {
8 namespace services {
9 namespace transports {
10 namespace tcp {
11 
17 {
18 public:
20  OutgoingConnection(const std::string& ipaddress, uint16_t port);
21  OutgoingConnection(const Address& address);
22 
29  void connect(const std::string& ipaddress, uint16_t port);
30 
35  void send(const std::string& data);
36 
37 private:
38  boost::asio::ip::tcp::socket mClientSocket;
39 };
40 
41 } // end namespace tcp
42 } // end namespace transports
43 } // end namespace services
44 } // end namespace fipa
45 #endif // FIPA_SERVICES_TRANSPORTS_TCP_OUTGOING_CONNECTION_HPP
A unidirectional, outgoing tcp connection that allows to send fipa letter to a receiver.
Definition: OutgoingConnection.hpp:16
A unidirectional, outgoing connection that allows to send fipa letters to a receiver.
Definition: OutgoingConnection.hpp:15
void send(const std::string &data)
Definition: OutgoingConnection.cpp:44
Communication address specified by IP, port, and protocol.
Definition: Address.hpp:15
OutgoingConnection()
Definition: OutgoingConnection.cpp:10
void connect(const std::string &ipaddress, uint16_t port)
Definition: OutgoingConnection.cpp:29
Definition: DistributedServiceDirectory.cpp:5