RLRP routing  v.0.1.0
Messages.HelloMessage Class Reference

Hello service message. More...

Collaboration diagram for Messages.HelloMessage:
Collaboration graph

Public Member Functions

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

Public Attributes

 ipv4_count
 Amount of unicast IPv4 addresses, assigned to the virtual network interface. More...
 
 ipv6_count
 Amount of unicast IPv6 addresses, assigned to the virtual network interface. More...
 
 ipv4_address
 IPv4 address in string representation. More...
 
 ipv6_addresses
 List of all assigned IPv6 addresses, in string representation. More...
 
 tx_count
 Number of message rebroadcast times. More...
 

Static Public Attributes

int type = 6
 Type ID of Hello service message. More...
 

Detailed Description

Hello service message.

Constructor & Destructor Documentation

def Messages.HelloMessage.__init__ (   self)

Constructor.

Parameters
selfThe object pointer.
Returns
None

Member Function Documentation

def Messages.HelloMessage.__str__ (   self)

Default print method.

Parameters
selfThe object pointer.
Returns
String with "TYPE: , IPV4_ADDRESS: , IPV6_ADDRESSES: , TX_COUNT: ".

Member Data Documentation

Messages.HelloMessage.ipv4_address

IPv4 address in string representation.

If no IPv4 address is assigned to the network interface, the variable contains empty string "".

Messages.HelloMessage.ipv4_count

Amount of unicast IPv4 addresses, assigned to the virtual network interface.

There can be only one IPv4 addressed assigned to the network interface, therefore, all possible values of this variable are: 0 - no IPv4 address assigned, 1 - IPv4 address is assigned.

Messages.HelloMessage.ipv6_addresses

List of all assigned IPv6 addresses, in string representation.

If no IPv6 addresses are assigned to the network interface, the variable contains empty list [].

Messages.HelloMessage.ipv6_count

Amount of unicast IPv6 addresses, assigned to the virtual network interface.

In the current implementation of Messages.HelloHeader, there could be assigned up to 3 IPv6 addresses, which can then be transmitted inside the Hello message. All possible values are: 0 - no IPv6 address assigned. 1 - 1 IPv6 address is assigned. 2 - 2 IPv6 address is assigned. 3 - 3 IPv6 address is assigned.

Messages.HelloMessage.tx_count

Number of message rebroadcast times.

Contains a number of times this particular Hello message has been rebroadcasted at the current moment.

int Messages.HelloMessage.type = 6
static

Type ID of Hello service message.


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