Rev | Line | |
---|
[5284] | 1 | #ifndef TRANSPORT_PEER_HPP_
|
---|
| 2 | #define TRANSPORT_PEER_HPP_
|
---|
| 3 |
|
---|
[7464] | 4 | #include "ariba/config.h"
|
---|
[5284] | 5 | #include "transport_protocol.hpp"
|
---|
[5993] | 6 | #include "ariba/utility/addressing/endpoint_set.hpp"
|
---|
[5284] | 7 |
|
---|
| 8 | // namespace ariba::transport
|
---|
| 9 | namespace ariba {
|
---|
| 10 | namespace transport {
|
---|
| 11 |
|
---|
| 12 | using namespace ariba::addressing;
|
---|
| 13 |
|
---|
| 14 | class tcpip;
|
---|
[7041] | 15 | #ifdef HAVE_LIBBLUETOOTH
|
---|
[5284] | 16 | class rfcomm;
|
---|
[7041] | 17 | #endif
|
---|
[5284] | 18 |
|
---|
| 19 | /**
|
---|
| 20 | * TODO: Doc
|
---|
| 21 | *
|
---|
| 22 | * @author Sebastian Mies <mies@tm.uka.de>
|
---|
| 23 | */
|
---|
[9324] | 24 | /// this transport peer allocates implementations of various transport
|
---|
| 25 | /// protocols and can send messages to an entire set of endpoints
|
---|
[5284] | 26 | class transport_peer : public transport_protocol {
|
---|
| 27 | public:
|
---|
| 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 |
|
---|
| 37 | private:
|
---|
| 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.