Module e.c.u.network

Part of elisa.core.utils

Functions to retrieve hostname and IP address of the machine running Elisa
Line # Kind Name Docs
59 Function get_host_address Retrieve current host address for Win32 and Linux platforms
136 Function get_ip_address Retrieve IP address of the given network interface, on a Windows platform
28 Function _get_host_address_win Retrieve host address for Win32 platform
37 Function _get_host_address_linux Retrieve host address for Linux platform
74 Function _get_linux_ip_address Retrieve IP address of the given network interface, on a Linux platform
92 Function _get_win32_ipaddress Retrieve IP address of the given network interface, on a Windows platform
103 Function _get_win32_default_iface Retrieve name of the network interface connected to the default
113 Function _get_linux_default_iface Retrieve name of the network interface connected to the default
def _get_host_address_win():
Retrieve host address for Win32 platform
Returns (type: string )
def _get_host_address_linux():
Retrieve host address for Linux platform
Returns (type: string )
def get_host_address():
Retrieve current host address for Win32 and Linux platforms
Returns (type: string )
RaisesValueErrorif current system's platform is not windows or linux
def _get_linux_ip_address(ifname):
Retrieve IP address of the given network interface, on a Linux platform
Parametersifnamenetwork interface name (type: string )
Returns (type: string )
def _get_win32_ipaddress(ifname):
Retrieve IP address of the given network interface, on a Windows platform
Parametersifnamenetwork interface name (type: string )
Returns (type: string )
def _get_win32_default_iface():
Retrieve name of the network interface connected to the default gateway, on a Windows platform.
Returns (type: string )
def _get_linux_default_iface():
Retrieve name of the network interface connected to the default gateway, on a Linux platform.
Returns (type: string )
def get_ip_address(ifname=None):
Retrieve IP address of the given network interface, on a Windows platform
Parametersifnamenetwork interface name (type: string )
Returns (type: string )
RaisesValueErrorif current system's platform is not windows or linux
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.