An LpPacket represents an NDNLPv2 packet including header fields an an optional fragment.
More...
#include <lp-packet.hpp>
An LpPacket represents an NDNLPv2 packet including header fields an an optional fragment.
This is an internal class which the application normally would not use. http://redmine.named-data.net/projects/nfd/wiki/NDNLPv2
size_t ndn::LpPacket::countHeaderFields |
( |
| ) |
const |
|
inline |
Get the number of header fields.
This does not include the fragment.
- Returns
- The number of header fields.
const Blob& ndn::LpPacket::getFragmentWireEncoding |
( |
| ) |
const |
|
inline |
Get the fragment wire encoding.
- Returns
- The wire encoding, or an isNull Blob if not specified.
Get the header field at the given index.
- Parameters
-
index | The index, starting from 0. It is an error if index is greater to or equal to countHeaderFields(). |
- Returns
- The header field at the index.
void ndn::LpPacket::set |
( |
const LpPacketLite & |
lpPacketLite | ) |
|
Clear this LpPacket, and set the values by copying from lpPacketLite.
- Parameters
-
The documentation for this class was generated from the following files: