RLRP routing  v.0.1.0
Messages.RreqMessage Class Reference

Route Request service message. More...

Collaboration diagram for Messages.RreqMessage:
Collaboration graph

Public Member Functions

def __init__ (self)
 Constructor. More...
 
def __str__ (self)
 Default print method. More...
 

Public Attributes

 id
 Unique message ID. More...
 
 src_ip
 Source IP address in a string representation form of IPv4 or IPv6 addresses. More...
 
 dst_ip
 Destination IP address in a string representation form of IPv4 or IPv6 addresses. More...
 
 hop_count
 Current hop count value. More...
 

Static Public Attributes

 type = int()
 Type ID of RREQ message. More...
 

Detailed Description

Route Request service message.

This service message is used for both IPv4 and IPv6 L3 addressing cases.

Constructor & Destructor Documentation

def Messages.RreqMessage.__init__ (   self)

Constructor.

Parameters
selfThe object pointer.
Returns
None

Member Function Documentation

def Messages.RreqMessage.__str__ (   self)

Default print method.

Parameters
selfThe object pointer.
Returns
String with "ID: , SRC_IP: , DST_IP: , HOP_COUNT: ".

Member Data Documentation

Messages.RreqMessage.dst_ip

Destination IP address in a string representation form of IPv4 or IPv6 addresses.

Messages.RreqMessage.hop_count

Current hop count value.

Messages.RreqMessage.id

Unique message ID.

Messages.RreqMessage.src_ip

Source IP address in a string representation form of IPv4 or IPv6 addresses.

Messages.RreqMessage.type = int()
static

Type ID of RREQ message.

This type ID value is being set in Messages.pack_message function, depending on L3 addressing type this message contains. In case of IPv4 - type ID is 2, in case of IPv6 - type ID is 3.


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