latest.ipv8.messaging.interfaces.udp.endpoint
Module Contents
Classes
An IPv4 address intended for UDP communication. |
|
An IPv4 address intended for UDP communication over lan networks. |
|
An IPv6 address intended for UDP communication. |
|
A host-port combination for DNS servers. |
|
Endpoint that binds UDP (over IPv4 by default). |
|
UDPEndpoint subclass that binds to IPv6 instead of IPv4. |
- class latest.ipv8.messaging.interfaces.udp.endpoint.UDPv4Address
Bases:
NamedTuple
An IPv4 address intended for UDP communication.
- class latest.ipv8.messaging.interfaces.udp.endpoint.UDPv4LANAddress
Bases:
NamedTuple
An IPv4 address intended for UDP communication over lan networks.
- class latest.ipv8.messaging.interfaces.udp.endpoint.UDPv6Address
Bases:
NamedTuple
An IPv6 address intended for UDP communication.
- class latest.ipv8.messaging.interfaces.udp.endpoint.DomainAddress
Bases:
NamedTuple
A host-port combination for DNS servers.
- class latest.ipv8.messaging.interfaces.udp.endpoint.UDPEndpoint(port: int = 0, ip: str = '0.0.0.0')
Bases:
latest.ipv8.messaging.interfaces.endpoint.Endpoint
,asyncio.DatagramProtocol
Endpoint that binds UDP (over IPv4 by default).
- SOCKET_FAMILY
- send(socket_address: ipv8.types.Address, packet: bytes) None
Send a packet to a given address.
- Parameters:
socket_address – Tuple of (IP, port) which indicates the destination of the packet.
- log_error(message: str, level: int = logging.WARNING) None
Log a message using our own logger instance.
- async open() bool
Open the Endpoint.
- Returns:
True is the Endpoint was successfully opened, False otherwise.
- assert_open() None
Check if we are opened by the programmer and if the underlying transport is fully open.
- get_address() ipv8.types.Address
Get the address for this Endpoint.