Thread. More...
Public Member Functions | |
def | __init__ |
def | detect_network_interface |
def | get_statistics |
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 22 of file network_interface_manager.py.
def rocon_gateway.network_interface_manager.NetworkInterfaceManager.__init__ | ( | self, | |
interface_name = None |
|||
) |
Initializes the interface manager. If the interface_name is None or an empty string, then the interface manager attempts to auto detect the interface being used.
Definition at line 29 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 38 of file network_interface_manager.py.
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 90 of file network_interface_manager.py.
Definition at line 33 of file network_interface_manager.py.