Print trace logs for each incoming and outgoing packet.
More...
#include <transport-tracer.hpp>
Inherits ndnph::transport::TransportWrap.
|
| | Tracer (Transport &inner, const char *category="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.
|
| |
|
| virtual void | log (char direction, const uint8_t *pkt, size_t pktLen, uint64_t endpointId) |
| |
| void | handleRx (const uint8_t *pkt, size_t pktLen, uint64_t endpointId) override |
| |
| bool | doSend (const uint8_t *pkt, size_t pktLen, uint64_t endpointId) override |
| |
Print trace logs for each incoming and outgoing packet.
◆ Tracer()
| ndnph::transport::Tracer::Tracer |
( |
Transport & |
inner, |
|
|
const char * |
category = "transport" |
|
) |
| |
|
inlineexplicit |
◆ doSend()
| bool ndnph::transport::Tracer::doSend |
( |
const uint8_t * |
pkt, |
|
|
size_t |
pktLen, |
|
|
uint64_t |
endpointId |
|
) |
| |
|
inlineoverrideprivatevirtual |
◆ handleRx()
| void ndnph::transport::Tracer::handleRx |
( |
const uint8_t * |
pkt, |
|
|
size_t |
pktLen, |
|
|
uint64_t |
endpointId |
|
) |
| |
|
inlineoverrideprivatevirtual |
◆ log()
| virtual void ndnph::transport::Tracer::log |
( |
char |
direction, |
|
|
const uint8_t * |
pkt, |
|
|
size_t |
pktLen, |
|
|
uint64_t |
endpointId |
|
) |
| |
|
inlineprivatevirtual |
◆ category
| const char* ndnph::transport::Tracer::category |
|
protected |
The documentation for this class was generated from the following file: