esp8266ndn
NDN Arduino library for ESP8266 and more
|
Consumer of segmented object, using a stop-and-wait algorithm. More...
#include <segment-consumer.hpp>
Inherits ndnph::SegmentConsumerBase.
Public Member Functions | |
SegmentConsumerBase (Face &face, Options opts) | |
Constructor. More... | |
SegmentConsumerBase (Face &face) | |
![]() | |
SegmentConsumerBase (Face &face, Options opts) | |
Constructor. More... | |
SegmentConsumerBase (Face &face) | |
void | setSegmentCallback (SegmentCallback cb, void *ctx) |
Assign SegmentCallback. More... | |
void | saveTo (SaveDest &dest) |
Save content to destination. More... | |
void | start (Name prefix) |
Start fetching content under given prefix. More... | |
void | stop () |
Stop fetching. More... | |
bool | isRunning () const |
Determine whether fetching is in progress (not completed or failed). More... | |
![]() | |
PacketHandler ()=default | |
Construct without adding to Face. More... | |
PacketHandler (Face &face, int8_t prio=0) | |
Construct and add handler to Face. More... | |
Additional Inherited Members | |
![]() | |
using | SegmentCallback = void(*)(void *ctx, uint64_t segment, Data data) |
Callback upon segment arrival. More... | |
![]() | |
using | PacketInfo = Face::PacketInfo |
![]() | |
void | invokeCallback (Data data) |
![]() | |
virtual | ~PacketHandler () |
Remove handler from Face. More... | |
Face * | getFace () const |
const PacketInfo * | getCurrentPacketInfo () const |
Retrieve information about current processing packet. More... | |
template<typename Packet > | |
bool | send (Region ®ion, const Packet &packet, PacketInfo pi={}) |
Synchronously transmit a packet. More... | |
template<typename Packet , typename... PacketInfoModifier> | |
bool | send (Region ®ion, const Packet &packet, const PacketInfoModifier &... pim) |
Synchronously transmit a packet. More... | |
template<typename Packet , typename... Arg, typename = typename std::enable_if< !std::is_base_of<Region, typename std::decay<Packet>::type>::value>::type> | |
bool | send (const Packet &packet, Arg &&... arg) |
Synchronously transmit a packet. More... | |
template<typename... Arg> | |
bool | reply (Arg &&... arg) |
Synchronously transmit a packet in reply to current processing packet. More... | |
![]() | |
Options | m_opts |
SegmentCallback | m_cb = nullptr |
void * | m_cbCtx = nullptr |
Name | m_prefix |
uint64_t | m_segment = 0 |
OutgoingPendingInterest | m_pending |
int | m_retxRemain = 0 |
bool | m_running = false |
Consumer of segmented object, using a stop-and-wait algorithm.
SegmentConvention | segment component convention. |
regionCap | encoding region capacity. |
|
inlineexplicit |
|
inlineexplicit |
Constructor.
face | face for communication. |
opts | options. |