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

Last change on this file since 5493 was 5284, checked in by mies, 15 years ago

+ added new transport modules and adapted ariba to them
+ exchange endpoint descriptors an link establishment
+ clean up of base communication
+ link establishment with in the presence of multiple endpoints
+ local discovery for ipv6, ipv4 and bluetooth mac addresses

File size: 802 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;
24 virtual void terminate( const address_v* local, 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.