IPv4Address

class IPv4Address

An IP version 4 style address.

Members defined in IPv4Address (14 members)

is_loopback

R

Returns true if the address is a loopback address

is_multicast

R

Returns true if the address is a multicast address

is_unspecified

R

Returns true if the address is unspecified

__copy__

__deepcopy__

__init__

__int__

Returns the address as an unsigned integer.

__repr__

__str__

any

Returns an address object that represents any address

broadcast

Returns an address object that represents the broadcast address

loopback

Returns an address object that represents the loopback address

to_bytes

Returns the address as bytes, in network byte order.

to_uint

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.

Used in