#include <source/ariba/utility/transport/transport_peer.hpp>
Inherits ariba::transport::transport_protocol.
Public Member Functions | |
transport_peer (endpoint_set &local_set) | |
virtual | ~transport_peer () |
virtual void | start () |
virtual void | stop () |
virtual void | send (const address_v *remote, const uint8_t *data, size_t size) |
virtual void | send (const endpoint_set &endpoints, const uint8_t *data, size_t size) |
virtual void | terminate (const address_v *remote) |
virtual void | register_listener (transport_listener *listener) |
Private Attributes | |
endpoint_set & | local |
tcpip * | tcp |
rfcomm * | rfc |
Definition at line 23 of file transport_peer.hpp.
ariba::transport::transport_peer::transport_peer | ( | endpoint_set & | local_set | ) |
Definition at line 11 of file transport_peer.cpp.
References local, rfc, ariba::addressing::endpoint_set::rfcomm, ariba::addressing::endpoint_set::tcp, and tcp.
ariba::transport::transport_peer::~transport_peer | ( | ) | [virtual] |
void ariba::transport::transport_peer::register_listener | ( | transport_listener * | listener | ) | [virtual] |
Implements ariba::transport::transport_protocol.
Definition at line 65 of file transport_peer.cpp.
References ariba::transport::rfcomm::register_listener(), ariba::transport::tcpip::register_listener(), rfc, and tcp.
Referenced by ariba::communication::BaseCommunication::start(), and ariba::transport::detail::test_transport_process().
void ariba::transport::transport_peer::send | ( | const endpoint_set & | endpoints, | |
const uint8_t * | data, | |||
size_t | size | |||
) | [virtual] |
Implements ariba::transport::transport_protocol.
Definition at line 53 of file transport_peer.cpp.
References rfc, ariba::transport::rfcomm::send(), ariba::transport::tcpip::send(), and tcp.
void ariba::transport::transport_peer::send | ( | const address_v * | remote, | |
const uint8_t * | data, | |||
size_t | size | |||
) | [virtual] |
Implements ariba::transport::transport_protocol.
Definition at line 43 of file transport_peer.cpp.
References ariba::addressing::address_v::instanceof(), rfc, ariba::transport::rfcomm::send(), ariba::transport::tcpip::send(), tcp, and ariba::addressing::address_v::to_string().
Referenced by ariba::communication::BaseCommunication::send(), and ariba::transport::detail::test_transport_process().
void ariba::transport::transport_peer::start | ( | ) | [virtual] |
Implements ariba::transport::transport_protocol.
Definition at line 33 of file transport_peer.cpp.
References rfc, ariba::transport::rfcomm::start(), ariba::transport::tcpip::start(), and tcp.
Referenced by ariba::communication::BaseCommunication::start(), and ariba::transport::detail::test_transport_process().
void ariba::transport::transport_peer::stop | ( | ) | [virtual] |
Implements ariba::transport::transport_protocol.
Definition at line 38 of file transport_peer.cpp.
References rfc, ariba::transport::rfcomm::stop(), ariba::transport::tcpip::stop(), and tcp.
Referenced by ariba::communication::BaseCommunication::stop().
void ariba::transport::transport_peer::terminate | ( | const address_v * | remote | ) | [virtual] |
Implements ariba::transport::transport_protocol.
Definition at line 58 of file transport_peer.cpp.
References ariba::addressing::address_v::instanceof(), rfc, tcp, ariba::transport::rfcomm::terminate(), and ariba::transport::tcpip::terminate().
Referenced by ariba::communication::BaseCommunication::remove_endpoint().
rfcomm* ariba::transport::transport_peer::rfc [private] |
Definition at line 37 of file transport_peer.hpp.
Referenced by register_listener(), send(), start(), stop(), terminate(), transport_peer(), and ~transport_peer().
tcpip* ariba::transport::transport_peer::tcp [private] |
Definition at line 36 of file transport_peer.hpp.
Referenced by register_listener(), send(), start(), stop(), terminate(), transport_peer(), and ~transport_peer().