Last change
on this file since 10705 was 10653, checked in by Michael Tänzer, 12 years ago |
Merge the ASIO branch back into trunk
|
File size:
799 bytes
|
Rev | 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 |
|
---|
| 9 | using ariba::addressing::address_vf;
|
---|
| 10 |
|
---|
| 11 | namespace ariba {
|
---|
| 12 | namespace transport {
|
---|
| 13 |
|
---|
| 14 | class transport_connection
|
---|
| 15 | {
|
---|
| 16 | public:
|
---|
| 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.