source: source/ariba/utility/transport/transport_connection.hpp@ 10700

Last change on this file since 10700 was 10653, checked in by Michael Tänzer, 12 years ago

Merge the ASIO branch back into trunk

File size: 799 bytes
Line 
1
2#ifndef TRANSPORT_CONNECTION_HPP_
3#define TRANSPORT_CONNECTION_HPP_
4
5#include "ariba/utility/addressing/addressing.hpp"
6#include "ariba/utility/transport/messages/message.hpp"
7#include <boost/shared_ptr.hpp>
8
9using ariba::addressing::address_vf;
10
11namespace ariba {
12namespace transport {
13
14class transport_connection
15{
16public:
17 typedef boost::shared_ptr<transport_connection> sptr;
18
19 /// Allow deleting implementing classes by pointer
20 virtual ~transport_connection() {}
21
22 virtual void send(reboost::message_t message, uint8_t priority = 0) = 0;
23
24 virtual address_vf getLocalEndpoint() = 0;
25 virtual address_vf getRemoteEndpoint() = 0;
26
27 virtual void terminate() = 0;
28};
29
30} /* namespace transport */
31} /* namespace ariba */
32#endif /* TRANSPORT_CONNECTION_HPP_ */
Note: See TracBrowser for help on using the repository browser.