RLRP routing  v.0.1.0
All Classes Namespaces Files Functions Variables Pages
Messages.AckMessage Class Reference

Acknowledgement (ACK) service message. More...

Collaboration diagram for Messages.AckMessage:
Collaboration graph

Public Member Functions

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

Public Attributes

 id
 Unique message ID. More...
 
 tx_count
 Number of message retransmission times. More...
 
 msg_hash
 Hash value of the data/service packet this ACK replies to. More...
 

Static Public Attributes

int type = 7
 Type ID of ACK service message. More...
 

Detailed Description

Acknowledgement (ACK) service message.

Constructor & Destructor Documentation

def Messages.AckMessage.__init__ (   self)

Constructor.

Parameters
selfThe object pointer.
Returns
None

Member Function Documentation

def Messages.AckMessage.__str__ (   self)

Default print method.

Parameters
selfThe object pointer.
Returns
String with "TYPE: , ID: , TX_COUNT: , MSG_HASH: ".

Member Data Documentation

Messages.AckMessage.id

Unique message ID.

Messages.AckMessage.msg_hash

Hash value of the data/service packet this ACK replies to.

This hash value is calculated from two attributes of the data/service packet: destination IP of the packet, and the MAC address of a receiving node.

Messages.AckMessage.tx_count

Number of message retransmission times.

Contains a number of times this particular ACK message has been retransmitted at the current moment.

int Messages.AckMessage.type = 7
static

Type ID of ACK service message.


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