Module address

Source

Structs§

Addr
The Address attribute indicates a reflexive transport address of the client. It consists of an 8-bit address family and a 16-bit port, followed by a fixed-length value representing the IP address. If the address family is IPv4, the address MUST be 32 bits. If the address family is IPv6, the address MUST be 128 bits. All fields must be in network byte order.

Constants§

FAMILY_IPV4
FAMILY_IPV6

Functions§

from_bytes_v4
Unit Test
from_bytes_v6
Unit Test
xor
Unit Test
xor_v4
Unit Test
xor_v6
Unit Test