Last change
on this file since 5668 was 5614, checked in by mies, 15 years ago |
added termination of transports when no link is up anymore to an end-point
|
File size:
778 bytes
|
Rev | Line | |
---|
[5284] | 1 | #ifndef TRANSPORT_PROTOCOL_HPP_
|
---|
| 2 | #define TRANSPORT_PROTOCOL_HPP_
|
---|
| 3 |
|
---|
| 4 | #include "../addressing/addressing.hpp"
|
---|
| 5 | #include "transport_listener.hpp"
|
---|
| 6 |
|
---|
| 7 | // namespace ariba::transport
|
---|
| 8 | namespace ariba {
|
---|
| 9 | namespace transport {
|
---|
| 10 |
|
---|
| 11 | using namespace ariba::addressing;
|
---|
| 12 |
|
---|
| 13 | /**
|
---|
| 14 | * TODO: Doc
|
---|
| 15 | *
|
---|
| 16 | * @author Sebastian Mies <mies@tm.uka.de>
|
---|
| 17 | */
|
---|
| 18 | class transport_protocol {
|
---|
| 19 | public:
|
---|
| 20 | virtual void start() = 0;
|
---|
| 21 | virtual void stop() = 0;
|
---|
| 22 | virtual void send( const address_v* remote, const uint8_t* data, size_t size ) = 0;
|
---|
| 23 | virtual void send( const endpoint_set& endpoints, const uint8_t* data, size_t size ) = 0;
|
---|
[5614] | 24 | virtual void terminate( const address_v* remote ) = 0;
|
---|
[5284] | 25 | virtual void register_listener( transport_listener* listener ) = 0;
|
---|
| 26 | };
|
---|
| 27 |
|
---|
| 28 | }} // namespace ariba::transport
|
---|
| 29 |
|
---|
| 30 | #endif /* TRANSPORT_PROTOCOL_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.