Package elisa :: Package core :: Package utils :: Module network
[hide private]
[frames] | no frames]

Module network

source code

Functions to retrieve hostname and IP address of the machine running Elisa

Functions [hide private]
string
_get_host_address_win()
Retrieve host address for Win32 platform
source code
string
_get_host_address_linux()
Retrieve host address for Linux platform
source code
string
get_host_address()
Retrieve current host address for Win32 and Linux platforms
source code
string
_get_linux_ip_address(ifname)
Retrieve IP address of the given network interface, on a Linux platform
source code
string
_get_win32_ipaddress(ifname)
Retrieve IP address of the given network interface, on a Windows platform
source code
string
_get_win32_default_iface()
Retrieve name of the network interface connected to the default gateway, on a Windows platform.
source code
string
_get_linux_default_iface()
Retrieve name of the network interface connected to the default gateway, on a Linux platform.
source code
string
get_ip_address(ifname='frontend')
Retrieve IP address of the given network interface, on a Windows platform
source code
Variables [hide private]
  __maintainer__ = 'Philippe Normand <philippe@fluendo.com>'
Function Details [hide private]

get_host_address()

source code 
Retrieve current host address for Win32 and Linux platforms
Returns: string
Raises:
  • ValueError - if current system's platform is not windows or linux

_get_linux_ip_address(ifname)

source code 
Retrieve IP address of the given network interface, on a Linux platform
Parameters:
  • ifname (string) - network interface name
Returns: string

_get_win32_ipaddress(ifname)

source code 
Retrieve IP address of the given network interface, on a Windows platform
Parameters:
  • ifname (string) - network interface name
Returns: string

get_ip_address(ifname='frontend')

source code 
Retrieve IP address of the given network interface, on a Windows platform
Parameters:
  • ifname (string) - network interface name
Returns: string
Raises:
  • ValueError - if current system's platform is not windows or linux