Public Member Functions | Public Attributes | List of all members
rocon_gateway.network_interface_manager.NetworkInterfaceManager Class Reference

Thread. More...

Inheritance diagram for rocon_gateway.network_interface_manager.NetworkInterfaceManager:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, interface_name=None)
 
def detect_network_interface (self, interface_name='')
 
def get_statistics (self)
 

Public Attributes

 interface_type
 

Detailed Description

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.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Member Data Documentation

rocon_gateway.network_interface_manager.NetworkInterfaceManager.interface_type

Definition at line 41 of file network_interface_manager.py.


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


rocon_gateway
Author(s): Daniel Stonier , Jihoon Lee , Piyush Khandelwal
autogenerated on Mon Jun 10 2019 14:40:10