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

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

added bluetooth check

File size: 1.1 KB
RevLine 
[5284]1#ifndef TRANSPORT_PEER_HPP_
2#define TRANSPORT_PEER_HPP_
3
[7041]4#include<config.h>
[5284]5#include "transport_protocol.hpp"
[5993]6#include "ariba/utility/addressing/endpoint_set.hpp"
[5284]7
8// namespace ariba::transport
9namespace ariba {
10namespace transport {
11
12using namespace ariba::addressing;
13
14class tcpip;
[7041]15#ifdef HAVE_LIBBLUETOOTH
[5284]16class rfcomm;
[7041]17#endif
[5284]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 );
[5614]34 virtual void terminate( const address_v* remote );
[5284]35 virtual void register_listener( transport_listener* listener );
36
37private:
38 endpoint_set& local;
39 tcpip* tcp;
[7041]40#ifdef HAVE_LIBBLUETOOTH
[5284]41 rfcomm* rfc;
[7041]42#endif
[5284]43};
44
45}} // namespace ariba::transport
46
47#endif /* TRANSPORT_PEER_HPP_ */
Note: See TracBrowser for help on using the repository browser.