Last change
on this file since 10767 was 10653, checked in by Michael Tänzer, 12 years ago |
Merge the ASIO branch back into trunk
|
File size:
997 bytes
|
Rev | Line | |
---|
[5284] | 1 | #ifndef TRANSPORT_PROTOCOL_HPP_
|
---|
| 2 | #define TRANSPORT_PROTOCOL_HPP_
|
---|
| 3 |
|
---|
[5993] | 4 | #include "ariba/utility/addressing/addressing.hpp"
|
---|
[10653] | 5 | #include "ariba/utility/transport/transport_listener.hpp"
|
---|
| 6 | #include "ariba/utility/transport/messages/message.hpp"
|
---|
[5284] | 7 |
|
---|
| 8 | // namespace ariba::transport
|
---|
| 9 | namespace ariba {
|
---|
| 10 | namespace transport {
|
---|
| 11 |
|
---|
| 12 | using namespace ariba::addressing;
|
---|
| 13 |
|
---|
| 14 | /**
|
---|
| 15 | * TODO: Doc
|
---|
| 16 | *
|
---|
| 17 | * @author Sebastian Mies <mies@tm.uka.de>
|
---|
| 18 | */
|
---|
| 19 | class transport_protocol {
|
---|
| 20 | public:
|
---|
[10653] | 21 | /// Allow deleting implementing classes by pointer
|
---|
| 22 | virtual ~transport_protocol() {}
|
---|
| 23 |
|
---|
[5284] | 24 | virtual void start() = 0;
|
---|
| 25 | virtual void stop() = 0;
|
---|
[10653] | 26 |
|
---|
| 27 | virtual void send(
|
---|
| 28 | const endpoint_set& endpoints,
|
---|
| 29 | reboost::message_t message,
|
---|
| 30 | uint8_t priority = 0) = 0;
|
---|
| 31 |
|
---|
| 32 | /// @deprecated: Use terminate() from transport_connection instead
|
---|
[5614] | 33 | virtual void terminate( const address_v* remote ) = 0;
|
---|
[10653] | 34 |
|
---|
[5284] | 35 | virtual void register_listener( transport_listener* listener ) = 0;
|
---|
| 36 | };
|
---|
| 37 |
|
---|
| 38 | }} // namespace ariba::transport
|
---|
| 39 |
|
---|
| 40 | #endif /* TRANSPORT_PROTOCOL_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.