An LpPacket represents an NDNLPv2 packet including header fields an an optional fragment. More...
#include <lp-packet.hpp>
Public Member Functions | |
| const Blob & | getFragmentWireEncoding () const |
| Get the fragment wire encoding. More... | |
| size_t | countHeaderFields () const |
| Get the number of header fields. More... | |
| ptr_lib::shared_ptr < LpPacketHeaderField > & | getHeaderField (int index) |
| Get the header field at the given index. More... | |
| void | clear () |
| Remove all header fields and set the fragment to an isNull Blob. | |
| void | set (const LpPacketLite &lpPacketLite) |
| Clear this LpPacket, and set the values by copying from lpPacketLite. More... | |
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
|
inline |
Get the number of header fields.
This does not include the fragment.
|
inline |
Get the fragment wire encoding.
|
inline |
Get the header field at the given index.
| index | The index, starting from 0. It is an error if index is greater to or equal to countHeaderFields(). |
| void ndn::LpPacket::set | ( | const LpPacketLite & | lpPacketLite | ) |
Clear this LpPacket, and set the values by copying from lpPacketLite.
| lpPacketLite | An LpPacketLite object. |
1.8.6