RLRP routing
v.0.1.0
|
Generic routing class. More...
Public Member Functions | |
def | run (self) |
Main run method. More... | |
def | get_topology_neighbors (self, node_mac) |
Get the topology neighbors of a given node from the topology_list. More... | |
![]() | |
def | __init__ (self, pidfile, stdin="/dev/null", stdout=REDIRECT_TO, stderr=REDIRECT_TO) |
Constructor. More... | |
def | daemonize (self) |
Daemonize the process and do all the routine related to that. More... | |
def | del_pid (self) |
Delete the pid file. More... | |
def | start (self) |
Start the daemon. More... | |
def | stop (self) |
Stop the daemon. More... | |
def | restart (self) |
Restart the daemon. More... | |
def | run (self) |
Default method for overriding by the child class which inherited the Daemon. More... | |
Additional Inherited Members | |
![]() | |
stdin | |
stdout | |
stderr | |
pidfile | |
Generic routing class.
This is a generic routing class which initializes all the supporting classes, and runs the process in the main loop. It also catches the SIGINT signals from the daemon when the program shuts down.
def Node_init.RoutingDaemon.get_topology_neighbors | ( | self, | |
node_mac | |||
) |
Get the topology neighbors of a given node from the topology_list.
It is needed for correct filtering of the incoming frames from the raw socket.
self | The object pointer. |
node_mac | The MAC address in a form "xx:xx:xx:xx:xx:xx" of the node's physical network interface used for communication. |
def Node_init.RoutingDaemon.run | ( | self | ) |
Main run method.
self | The object pointer. |