Last change
on this file since 5626 was 5614, checked in by mies, 15 years ago |
added termination of transports when no link is up anymore to an end-point
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifndef TRANSPORT_PEER_HPP_
|
---|
2 | #define TRANSPORT_PEER_HPP_
|
---|
3 |
|
---|
4 | #include "transport_protocol.hpp"
|
---|
5 | #include "../addressing/endpoint_set.hpp"
|
---|
6 |
|
---|
7 | // namespace ariba::transport
|
---|
8 | namespace ariba {
|
---|
9 | namespace transport {
|
---|
10 |
|
---|
11 | using namespace ariba::addressing;
|
---|
12 |
|
---|
13 | class tcpip;
|
---|
14 | class 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
|
---|
23 | class transport_peer : public transport_protocol {
|
---|
24 | public:
|
---|
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 );
|
---|
31 | virtual void terminate( const address_v* remote );
|
---|
32 | virtual void register_listener( transport_listener* listener );
|
---|
33 |
|
---|
34 | private:
|
---|
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.