RLRP routing
v.0.1.0
|
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...
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... | |
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.
def ArqHandler.ArqRoutine.__init__ | ( | self, | |
hash_int, | |||
msg_thread_map, | |||
raw_transport, | |||
message, | |||
payload, | |||
dst_address | |||
) |
Constructor.
self | The object pointer. |
hash_int | 32-bit hash value of message ID and destination IP pair. |
msg_thread_map | Reference to ArqHandler.ArqHandler.msg_thread_map dictionary. |
raw_transport | Reference to Transport.RawTransport object. |
message | Message from Messages module to send. |
payload | Payload string to the message. |
dst_address | Destination MAC address string. |
def ArqHandler.ArqRoutine.quit | ( | self | ) |
Stop and quit the thread operation.
self | The object pointer. |
def ArqHandler.ArqRoutine.run | ( | self | ) |
Main thread routine.
self | The object pointer. |
def ArqHandler.ArqRoutine.send_msg | ( | self | ) |
Send message with the dsr header to the dst_address.
self | The object pointer. |
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().