RLRP routing  v.0.1.0
Messages.HelloHeader Class Reference

Hello message header. More...

Collaboration diagram for Messages.HelloHeader:
Collaboration graph

Classes

class  FixedHeader
 Hello message fixed fields structure. More...
 
class  OnlyIpv4Header
 Hello message header structure if only IPv4 address is present. More...
 

Public Member Functions

def __init__ (self)
 Constructor. More...
 
def pack (self, hello_message)
 Pack the message object into the given structure. More...
 
def unpack (self, binary_header)
 Unpack the message object from the binary string. More...
 

Static Public Attributes

int max_int64 = 0xFFFFFFFFFFFFFFFF
 64-bit mask constant. More...
 
int max_int32 = 0xFFFFFFFF
 32-bit mask constant. More...
 

Detailed Description

Hello message header.

Constructor & Destructor Documentation

def Messages.HelloHeader.__init__ (   self)

Constructor.

Parameters
selfThe object pointer.
Returns
None

Member Function Documentation

def Messages.HelloHeader.pack (   self,
  hello_message 
)

Pack the message object into the given structure.

Parameters
selfThe object pointer.
hello_messageThe Messages.HelloMessage object.
Returns
A header binary string in hex representation.
def Messages.HelloHeader.unpack (   self,
  binary_header 
)

Unpack the message object from the binary string.

Parameters
selfThe object pointer.
binary_headerBinary string with the Hello Header structure.
Returns
(message object, created from the binary string), (length of the unpacked header structure)

Member Data Documentation

int Messages.HelloHeader.max_int32 = 0xFFFFFFFF
static

32-bit mask constant.

int Messages.HelloHeader.max_int64 = 0xFFFFFFFFFFFFFFFF
static

64-bit mask constant.


The documentation for this class was generated from the following file: