Thread. More...
Public Member Functions | |
def | __init__ (self, interface_name=None) |
def | detect_network_interface (self, interface_name='') |
def | get_statistics (self) |
Public Attributes | |
interface_type | |
Thread.
Uses netifaces and pythonwifi to pull information about the network being used to connect to the hub
Definition at line 23 of file network_interface_manager.py.
def rocon_gateway.network_interface_manager.NetworkInterfaceManager.__init__ | ( | self, | |
interface_name = None |
|||
) |
We have three means of getting the network interface that sits between gateway and a hub - by input arg, by environment variable, or if these are not specified, it tries to autodetect (but this only currently works if there is just one interface).
Definition at line 30 of file network_interface_manager.py.
def rocon_gateway.network_interface_manager.NetworkInterfaceManager.detect_network_interface | ( | self, | |
interface_name = '' |
|||
) |
Auto detects the network interface is none is supplied. If one is supplied, this function verifies that the interface is connected. :returns: the interface name and type if detected successfully :rtype: (str, int8) or None
Definition at line 44 of file network_interface_manager.py.
def rocon_gateway.network_interface_manager.NetworkInterfaceManager.get_statistics | ( | self | ) |
If the network interface manager is aware of which network interface was used to connect to the hub, then it prepares network statistics for that interface @return network_statistics @rtype gateway_msgs.ConnectionStatistics
Definition at line 96 of file network_interface_manager.py.
rocon_gateway.network_interface_manager.NetworkInterfaceManager.interface_type |
Definition at line 41 of file network_interface_manager.py.