RLRP routing  v.0.1.0
Node_init.RoutingDaemon Class Reference

Generic routing class. More...

Inheritance diagram for Node_init.RoutingDaemon:
Inheritance graph
Collaboration diagram for Node_init.RoutingDaemon:
Collaboration graph

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...
 
- Public Member Functions inherited from Node_init.Daemon
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

- Public Attributes inherited from Node_init.Daemon
 stdin
 
 stdout
 
 stderr
 
 pidfile
 

Detailed Description

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.

Member Function Documentation

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.

Parameters
selfThe object pointer.
node_macThe MAC address in a form "xx:xx:xx:xx:xx:xx" of the node's physical network interface used for communication.

Here is the caller graph for this function:

def Node_init.RoutingDaemon.run (   self)

Main run method.

Parameters
selfThe object pointer.

Here is the call graph for this function:


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