RLRP routing  v.0.1.0
Transport.UdsServer Class Reference

Unix Domain Socket (UDS) server class. More...

Inheritance diagram for Transport.UdsServer:
Inheritance graph
Collaboration diagram for Transport.UdsServer:
Collaboration graph

Public Member Functions

def __init__ (self, server_address)
 Constructor. More...
 
def run (self)
 Main thread routine. More...
 
def set_ip_addr4 (self, ip4)
 Set IPv4 address to the virtual interface. More...
 
def set_ip_addr6 (self, ip6)
 Set IPv6 address to the virtual interface. More...
 
def quit (self)
 Stop and quit the thread operation. More...
 

Public Attributes

 running
 Thread running state bool() flag. More...
 
 server_address
 UDS file location. More...
 
 FNULL
 Create file descriptor for forwarding all the output to /dev/null from subprocess calls. More...
 
 sock
 Create a UDS socket. More...
 
 iface
 Store the name of the virtual interface. More...
 

Detailed Description

Unix Domain Socket (UDS) server class.

UdsServer is needed for updating interface parameters in real time by receiving commands via UDS.

Constructor & Destructor Documentation

def Transport.UdsServer.__init__ (   self,
  server_address 
)

Constructor.

Parameters
selfThe object pointer.
server_addressUDS file location.
Returns
None

Member Function Documentation

def Transport.UdsServer.quit (   self)

Stop and quit the thread operation.

Parameters
selfThe object pointer.
Returns
None
def Transport.UdsServer.run (   self)

Main thread routine.

Parameters
selfThe object pointer.
Returns
None

Here is the call graph for this function:

def Transport.UdsServer.set_ip_addr4 (   self,
  ip4 
)

Set IPv4 address to the virtual interface.

Parameters
selfThe object pointer.
ip4IPv4 address in string representation.
Returns
None

Here is the caller graph for this function:

def Transport.UdsServer.set_ip_addr6 (   self,
  ip6 
)

Set IPv6 address to the virtual interface.

Parameters
selfThe object pointer.
ip6IPv6 address in string representation.
Returns
None

Here is the caller graph for this function:

Member Data Documentation

Transport.UdsServer.FNULL

Create file descriptor for forwarding all the output to /dev/null from subprocess calls.

Transport.UdsServer.iface

Store the name of the virtual interface.

Transport.UdsServer.running

Thread running state bool() flag.

Transport.UdsServer.server_address

UDS file location.

Transport.UdsServer.sock

Create a UDS socket.


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