Virtual transport that connects to a peer.
More...
#include <bridge-transport.hpp>
Inherits ndnph::transport::Transport, and ndnph::transport::DynamicRxQueueMixin.
|
| bool | begin (BridgeTransport &peer) |
| | Connect to peer transport.
|
| |
| bool | end () |
| | Disconnect from peer transport.
|
| |
| virtual | ~Transport ()=default |
| |
| bool | isUp () const |
| | Determine whether transport is connected.
|
| |
| void | loop () |
| | Process periodical events, such as receiving packets.
|
| |
| void | setRxCallback (RxCallback cb, void *ctx) |
| | Set incoming packet callback.
|
| |
| bool | send (const uint8_t *pkt, size_t pktLen, uint64_t endpointId=0) |
| | Synchronously transmit a packet.
|
| |
|
| bool | doIsUp () const final |
| |
| void | doLoop () final |
| |
| bool | doSend (const uint8_t *pkt, size_t pktLen, uint64_t endpointId) final |
| |
Virtual transport that connects to a peer.
◆ begin()
Connect to peer transport.
- Postcondition
- Packets sent on one transport are received at the other.
◆ doIsUp()
| bool ndnph::BridgeTransport::doIsUp |
( |
| ) |
const |
|
inlinefinalprivatevirtual |
◆ doLoop()
| void ndnph::BridgeTransport::doLoop |
( |
| ) |
|
|
inlinefinalprivatevirtual |
◆ doSend()
| bool ndnph::BridgeTransport::doSend |
( |
const uint8_t * |
pkt, |
|
|
size_t |
pktLen, |
|
|
uint64_t |
endpointId |
|
) |
| |
|
inlinefinalprivatevirtual |
◆ end()
| bool ndnph::BridgeTransport::end |
( |
| ) |
|
|
inline |
Disconnect from peer transport.
The documentation for this class was generated from the following file: