RLRP routing  v.0.1.0
ArqHandler.ArqRoutine Class Reference

A routine ARQ thread class which is responsible for sending the given message/data periodically in a timeout interval, until the corresponding ARQ has been received. More...

Inheritance diagram for ArqHandler.ArqRoutine:
Inheritance graph
Collaboration diagram for ArqHandler.ArqRoutine:
Collaboration graph

Public Member Functions

def __init__ (self, hash_int, msg_thread_map, raw_transport, message, payload, dst_address)
 Constructor. More...
 
def run (self)
 Main thread routine. More...
 
def send_msg (self)
 Send message with the dsr header to the dst_address. More...
 
def quit (self)
 Stop and quit the thread operation. More...
 

Public Attributes

 running
 Thread running state bool() flag. More...
 
 hash_int
 32-bit hash value of message ID and destination IP pair. More...
 
 msg_thread_map
 Reference to ArqHandler.ArqHandler.msg_thread_map dictionary. More...
 
 raw_transport
 Reference to Transport.RawTransport object. More...
 
 dsr_message
 Message from Messages module to send. More...
 
 payload
 Payload string to the message. More...
 
 dst_address
 Destination MAC address string. More...
 
 max_retries
 A number of maximum possible send retires if the ACK hasn't been received. More...
 
 timeout_interval
 Timeout interval after which the ACK message is considered to be lost, and, therefore, a message retransmission attempt should be performed. More...
 

Detailed Description

A routine ARQ thread class which is responsible for sending the given message/data periodically in a timeout interval, until the corresponding ARQ has been received.

Constructor & Destructor Documentation

def ArqHandler.ArqRoutine.__init__ (   self,
  hash_int,
  msg_thread_map,
  raw_transport,
  message,
  payload,
  dst_address 
)

Constructor.

Parameters
selfThe object pointer.
hash_int32-bit hash value of message ID and destination IP pair.
msg_thread_mapReference to ArqHandler.ArqHandler.msg_thread_map dictionary.
raw_transportReference to Transport.RawTransport object.
messageMessage from Messages module to send.
payloadPayload string to the message.
dst_addressDestination MAC address string.
Returns
None

Member Function Documentation

def ArqHandler.ArqRoutine.quit (   self)

Stop and quit the thread operation.

Parameters
selfThe object pointer.
Returns
None

Here is the caller graph for this function:

def ArqHandler.ArqRoutine.run (   self)

Main thread routine.

Parameters
selfThe object pointer.
Returns
None

Here is the call graph for this function:

Here is the caller graph for this function:

def ArqHandler.ArqRoutine.send_msg (   self)

Send message with the dsr header to the dst_address.

Parameters
selfThe object pointer.
Returns
None

Here is the caller graph for this function:

Member Data Documentation

ArqHandler.ArqRoutine.dsr_message

Message from Messages module to send.

ArqHandler.ArqRoutine.dst_address

Destination MAC address string.

ArqHandler.ArqRoutine.hash_int

32-bit hash value of message ID and destination IP pair.

ArqHandler.ArqRoutine.max_retries

A number of maximum possible send retires if the ACK hasn't been received.

int().

ArqHandler.ArqRoutine.msg_thread_map

Reference to ArqHandler.ArqHandler.msg_thread_map dictionary.

ArqHandler.ArqRoutine.payload

Payload string to the message.

ArqHandler.ArqRoutine.raw_transport

Reference to Transport.RawTransport object.

ArqHandler.ArqRoutine.running

Thread running state bool() flag.

ArqHandler.ArqRoutine.timeout_interval

Timeout interval after which the ACK message is considered to be lost, and, therefore, a message retransmission attempt should be performed.

float().


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