#include <segment-producer.hpp>
Inherits ndnph::PacketHandler.
Inherited by ndnph::BasicSegmentProducer< SegmentConvention, regionCap >.
|
Public Types inherited from ndnph::PacketHandler |
| using | PacketInfo = Face::PacketInfo |
| |
Protected Member Functions inherited from ndnph::PacketHandler |
| virtual | ~PacketHandler () |
| | Remove handler from Face.
|
| |
| Face * | getFace () const |
| |
| const PacketInfo * | getCurrentPacketInfo () const |
| | Retrieve information about current processing packet.
|
| |
| template<typename Packet > |
| bool | send (Region ®ion, const Packet &packet, PacketInfo pi={}) |
| | Synchronously transmit a packet.
|
| |
| template<typename Packet , typename... PacketInfoModifier> |
| bool | send (Region ®ion, const Packet &packet, const PacketInfoModifier &... pim) |
| | Synchronously transmit a packet.
|
| |
| 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.
|
| |
| template<typename... Arg> |
| bool | reply (Arg &&... arg) |
| | Synchronously transmit a packet in reply to current processing packet.
|
| |
◆ SegmentProducerBase() [1/2]
| ndnph::SegmentProducerBase::SegmentProducerBase |
( |
Face & |
face, |
|
|
Options |
opts |
|
) |
| |
|
inlineexplicit |
Constructor.
- Parameters
-
| face | face for communication. |
| opts | options. |
◆ SegmentProducerBase() [2/2]
| ndnph::SegmentProducerBase::SegmentProducerBase |
( |
Face & |
face | ) |
|
|
inlineexplicit |
◆ setContent()
| void ndnph::SegmentProducerBase::setContent |
( |
Name |
prefix, |
|
|
const uint8_t * |
content, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Set or change served content.
- Parameters
-
| prefix | name prefix. This should end with version component, if desired. |
| content | content pointer. |
| size | content size. |
- Note
- All arguments must be kept alive until setContent() is called again.
◆ m_content
| const uint8_t* ndnph::SegmentProducerBase::m_content = nullptr |
|
protected |
◆ m_lastSegment
| uint64_t ndnph::SegmentProducerBase::m_lastSegment = 0 |
|
protected |
◆ m_opts
| Options ndnph::SegmentProducerBase::m_opts |
|
protected |
◆ m_prefix
| Name ndnph::SegmentProducerBase::m_prefix |
|
protected |
◆ m_size
| size_t ndnph::SegmentProducerBase::m_size = 0 |
|
protected |
The documentation for this class was generated from the following file: