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

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

-config include gefixt

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