1 #ifndef NDNPH_FACE_TRANSPORT_FORCE_ENDPOINTID_HPP
2 #define NDNPH_FACE_TRANSPORT_FORCE_ENDPOINTID_HPP
19 , m_endpointId(endpointId) {}
22 bool doSend(
const uint8_t* pkt,
size_t pktLen, uint64_t)
final {
23 return inner.
send(pkt, pktLen, m_endpointId);
27 uint64_t m_endpointId;
Overwrite endpointId of outgoing packets.
Definition: transport-force-endpointid.hpp:15
ForceEndpointId(Transport &inner, uint64_t endpointId=0)
Definition: transport-force-endpointid.hpp:17
Wrap another transport.
Definition: transport.hpp:61
Transport & inner
Definition: transport.hpp:90
Base class of low-level transport.
Definition: transport.hpp:10
bool send(const uint8_t *pkt, size_t pktLen, uint64_t endpointId=0)
Synchronously transmit a packet.
Definition: transport.hpp:33