IPv4Address
- class IPv4Address
An IP version 4 style address.
Members defined in
IPv4Address(14 members)
RReturns true if the address is a loopback address
RReturns true if the address is a multicast address
RReturns true if the address is unspecified
Returns the address as an unsigned integer.
Returns an address object that represents any address
Returns an address object that represents the broadcast address
Returns an address object that represents the loopback address
Returns the address as bytes, in network byte order.
Returns the address as an unsigned integer.
Attributes
- property is_loopback: bool
Returns true if the address is a loopback address
- property is_multicast: bool
Returns true if the address is a multicast address
- property is_unspecified: bool
Returns true if the address is unspecified
Methods
- __copy__() syside.IPv4Address
- __deepcopy__() syside.IPv4Address
- __init__() None
- __init__(arg: int, /) None
- __init__(arg: Sequence[int], /) None
- __int__() int
Returns the address as an unsigned integer.
- __repr__() str
- __str__() str
- static any() syside.IPv4Address
Returns an address object that represents any address
- static broadcast() syside.IPv4Address
Returns an address object that represents the broadcast address
- static loopback() syside.IPv4Address
Returns an address object that represents the loopback address
- to_bytes() list[int]
Returns the address as bytes, in network byte order.
- to_uint() int
Returns the address as an unsigned integer.