class documentation

class IP4Address(IPAddress):

View In Hierarchy

IPv4 address class.

Method __init__ Constructor for IPv4 address.
Class Variable iplen Undocumented
Class Variable loopback_cidr Undocumented
Instance Variable address Undocumented
Static Method _GetIPIntFromString Get integer value of IPv4 address.

Inherited from IPAddress:

Class Method InNetwork Determine whether an address is within a network.
Class Method IsLoopback Determine whether it is a loopback address.
Class Method IsValid Validate a IP address.
Class Method Own Check if the current host has the the given IP address.
Class Method ValidateNetmask Validate a netmask suffix in CIDR notation.
Static Method GetAddressFamily Get the address family of the given address.
Static Method GetAddressFamilyFromVersion Convert an IP version to the corresponding IP address family.
Static Method GetClassFromIpFamily Return the IPAddress subclass for the given IP family.
Static Method GetClassFromIpVersion Return the IPAddress subclass for the given IP version.
Static Method GetVersionFromAddressFamily Convert an IP address family to the corresponding IP version.
Class Variable family Undocumented
def __init__(self, address):

Constructor for IPv4 address.

Parameters
address:strIP address
Raises
errors.IPAddressErrorif address invalid
iplen: int =

Undocumented

loopback_cidr: str =
address =

Undocumented

@staticmethod
def _GetIPIntFromString(address):

Get integer value of IPv4 address.

Parameters
address:strIPv6 address
Returns
intinteger value of given IP address