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

Last change on this file since 8606 was 5993, checked in by Christoph Mayer, 15 years ago

sigcomm release

File size: 789 bytes
Line 
1#ifndef TRANSPORT_PROTOCOL_HPP_
2#define TRANSPORT_PROTOCOL_HPP_
3
4#include "ariba/utility/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;
24 virtual void terminate( const address_v* remote ) = 0;
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.