#include <nfd-local-control-header.hpp>
Data Structures | |
| class | Error |
Public Member Functions | |
| LocalControlHeader () | |
| LocalControlHeader (const Block &wire, bool encodeIncomingFaceId=true, bool encodeNextHopFaceId=true) | |
| Create from wire encoding. More... | |
| template<class U > | |
| Block | wireEncode (const U &payload, bool encodeIncomingFaceId, bool encodeNextHopFaceId) const |
| Create wire encoding with options LocalControlHeader and the supplied item. More... | |
| void | wireDecode (const Block &wire, bool encodeIncomingFaceId=true, bool encodeNextHopFaceId=true) |
| Decode from the wire format and set LocalControlHeader on the supplied item. More... | |
| bool | empty (bool encodeIncomingFaceId, bool encodeNextHopFaceId) const |
| bool | hasIncomingFaceId () const |
| uint64_t | getIncomingFaceId () const |
| void | setIncomingFaceId (uint64_t incomingFaceId) |
| bool | hasNextHopFaceId () const |
| uint64_t | getNextHopFaceId () const |
| void | setNextHopFaceId (uint64_t nextHopFaceId) |
Static Public Member Functions | |
| static const Block & | getPayload (const Block &wire) |
Definition at line 16 of file nfd-local-control-header.hpp.
|
inline |
Definition at line 29 of file nfd-local-control-header.hpp.
|
inlineexplicit |
Create from wire encoding.
Definition at line 41 of file nfd-local-control-header.hpp.
|
inline |
Definition at line 90 of file nfd-local-control-header.hpp.
|
inline |
Definition at line 105 of file nfd-local-control-header.hpp.
|
inline |
Definition at line 125 of file nfd-local-control-header.hpp.
Definition at line 228 of file nfd-local-control-header.hpp.
|
inline |
Definition at line 99 of file nfd-local-control-header.hpp.
|
inline |
Definition at line 119 of file nfd-local-control-header.hpp.
|
inline |
Definition at line 111 of file nfd-local-control-header.hpp.
|
inline |
Definition at line 131 of file nfd-local-control-header.hpp.
|
inline |
Decode from the wire format and set LocalControlHeader on the supplied item.
The supplied wire MUST contain LocalControlHeader. Determination whether the optional LocalControlHeader should be done before calling this method.
Definition at line 196 of file nfd-local-control-header.hpp.
|
inline |
Create wire encoding with options LocalControlHeader and the supplied item.
The caller is responsible of checking whether LocalControlHeader contains any information.
!It is an error to call this method if neither IncomingFaceId nor NextHopFaceId is set, or neither of them is enabled.
| LocalControlHeader::Error | when empty LocalControlHeader be produced |
Definition at line 177 of file nfd-local-control-header.hpp.