source: source/ariba/utility/transport/transport_peer.hpp@ 6760

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

sigcomm release

File size: 1.0 KB
RevLine 
[5284]1#ifndef TRANSPORT_PEER_HPP_
2#define TRANSPORT_PEER_HPP_
3
4#include "transport_protocol.hpp"
[5993]5#include "ariba/utility/addressing/endpoint_set.hpp"
[5284]6
7// namespace ariba::transport
8namespace ariba {
9namespace transport {
10
11using namespace ariba::addressing;
12
13class tcpip;
14class rfcomm;
15
16/**
17 * TODO: Doc
18 *
19 * @author Sebastian Mies <mies@tm.uka.de>
20 */
21/// this transport peer allocates implemenations of various transport
22/// protocols and can sent message to an entire set of endpoints
23class transport_peer : public transport_protocol {
24public:
25 transport_peer( endpoint_set& local_set );
26 virtual ~transport_peer();
27 virtual void start();
28 virtual void stop();
29 virtual void send( const address_v* remote, const uint8_t* data, size_t size );
30 virtual void send( const endpoint_set& endpoints, const uint8_t* data, size_t size );
[5614]31 virtual void terminate( const address_v* remote );
[5284]32 virtual void register_listener( transport_listener* listener );
33
34private:
35 endpoint_set& local;
36 tcpip* tcp;
37 rfcomm* rfc;
38};
39
40}} // namespace ariba::transport
41
42#endif /* TRANSPORT_PEER_HPP_ */
Note: See TracBrowser for help on using the repository browser.