source: source/ariba/utility/transport/transport_protocol.hpp@ 5879

Last change on this file since 5879 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
RevLine 
[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
8namespace ariba {
9namespace transport {
10
11using namespace ariba::addressing;
12
13/**
14 * TODO: Doc
15 *
16 * @author Sebastian Mies <mies@tm.uka.de>
17 */
18class transport_protocol {
19public:
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.