pyndn.lp package¶
Submodules¶
pyndn.lp.congestion_mark module¶
This module defines the CongestionMark class which represents the congestion mark header field in an NDNLPv2 packet. http://redmine.named-data.net/projects/nfd/wiki/NDNLPv2
-
class
pyndn.lp.congestion_mark.
CongestionMark
[source]¶ Bases:
object
-
getCongestionMark
()[source]¶ Get the congestion mark value.
Returns: The congestion mark value. Return type: int
-
static
getFirstHeader
(lpPacket)[source]¶ Get the first header field in lpPacket which is an CongestionMark. This is an internal method which the application normally would not use.
Parameters: lpPacket (LpPacket) – The LpPacket with the header fields to search. Returns: The first CongestionMark header field, or None if not found. Return type: CongestionMark
-
pyndn.lp.incoming_face_id module¶
This module defines the IncomingFaceId class which represents the incoming face ID header field in an NDNLPv2 packet. http://redmine.named-data.net/projects/nfd/wiki/NDNLPv2
-
class
pyndn.lp.incoming_face_id.
IncomingFaceId
[source]¶ Bases:
object
-
static
getFirstHeader
(lpPacket)[source]¶ Get the first header field in lpPacket which is an IncomingFaceId. This is an internal method which the application normally would not use.
Parameters: lpPacket (LpPacket) – The LpPacket with the header fields to search. Returns: The first IncomingFaceId header field, or None if not found. Return type: IncomingFaceId
-
static
pyndn.lp.lp_packet module¶
This module defines the LpPacket class which 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
-
class
pyndn.lp.lp_packet.
LpPacket
[source]¶ Bases:
object
-
addHeaderField
(headerField)[source]¶ Add a header field. To add the fragment, use setFragmentWireEncoding().
Parameters: headerField (object) – The header field to add.
-
countHeaderFields
()[source]¶ Get the number of header fields. This does not include the fragment.
Returns: The number of header fields. Return type: int
-
getFragmentWireEncoding
()[source]¶ Get the fragment wire encoding.
Returns: The wire encoding, or an isNull Blob if not specified. Return type: Blob
-