latest.ipv8.messaging.interfaces.lan_addresses.unix.ioctl

Module Contents

Classes

Ioctl

Attempt to find local addresses using the ioctl system call.

Functions

ioctl(→ bytes)

Stub for the ioctl call's types.

Attributes

SIOCGIFADDR

FMT_SOCKADDR

FMT_FAMILY

latest.ipv8.messaging.interfaces.lan_addresses.unix.ioctl.ioctl(__fd: int, __request: int, __arg: bytes, __mutate_flag: bool = ...) bytes

Stub for the ioctl call’s types.

latest.ipv8.messaging.interfaces.lan_addresses.unix.ioctl.SIOCGIFADDR = 35093
latest.ipv8.messaging.interfaces.lan_addresses.unix.ioctl.FMT_SOCKADDR = '16sH14s'
latest.ipv8.messaging.interfaces.lan_addresses.unix.ioctl.FMT_FAMILY = 'H'
class latest.ipv8.messaging.interfaces.lan_addresses.unix.ioctl.Ioctl(verbose: bool = False)

Bases: latest.ipv8.messaging.interfaces.lan_addresses.addressprovider.AddressProvider

Attempt to find local addresses using the ioctl system call.

get_addresses() set

Attempt to use ioctl() to retrieve addresses.

Note: SIOCGIFADDR only supports AF_INET.