|
RLRP routing
v.0.1.0
|
Thread for waiting for an incoming reward messages on the given dst_ip. More...


Public Member Functions | |
| def | __init__ (self, dst_ip, mac, table, reward_wait_list) |
| Constructor. More... | |
| def | run (self) |
| Main thread routine. More... | |
| def | process_reward (self, reward_value) |
| Process an incoming reward value. More... | |
Public Attributes | |
| dst_ip | |
| Destination IP of the route for this packet. More... | |
| mac | |
| MAC address of the node where the packet had been sent for getting the reward. More... | |
| table | |
| Reference to RouteTable.Table object. More... | |
| reward_wait_list | |
| Reference to the shared RewardWaitHandler.reward_wait_list dictionary. More... | |
| reward_is_received | |
| Define flag whether the reward has been received or not. More... | |
| wait_timeout | |
| Wait timeout value after which a negative reward is initiated towards the dst_ip. More... | |
Thread for waiting for an incoming reward messages on the given dst_ip.
| def RewardHandler.RewardWaitThread.__init__ | ( | self, | |
| dst_ip, | |||
| mac, | |||
| table, | |||
| reward_wait_list | |||
| ) |
Constructor.
| self | The object pointer. |
| dst_ip | Destination IP of the route for this packet. |
| mac | MAC address of the node where the packet had been sent for getting the reward. |
| table | Reference to RouteTable.Table object. |
| reward_wait_list | Reference to the shared RewardWaitHandler.reward_wait_list dictionary. |
| def RewardHandler.RewardWaitThread.process_reward | ( | self, | |
| reward_value | |||
| ) |
Process an incoming reward value.
| self | The object pointer. |
| reward_value | Reward value. |
| def RewardHandler.RewardWaitThread.run | ( | self | ) |
Main thread routine.
| self | The object pointer. |
| RewardHandler.RewardWaitThread.dst_ip |
Destination IP of the route for this packet.
Represented in a string format.
| RewardHandler.RewardWaitThread.mac |
MAC address of the node where the packet had been sent for getting the reward.
Represented in "xx:xx:xx:xx:xx:xx" string format.
| RewardHandler.RewardWaitThread.reward_is_received |
Define flag whether the reward has been received or not.
bool().
| RewardHandler.RewardWaitThread.reward_wait_list |
Reference to the shared RewardWaitHandler.reward_wait_list dictionary.
| RewardHandler.RewardWaitThread.table |
Reference to RouteTable.Table object.
| RewardHandler.RewardWaitThread.wait_timeout |
Wait timeout value after which a negative reward is initiated towards the dst_ip.