[][src]Module tox_packet::ip_port

IpAddr with a port number.

Structs

IpPort

IpAddr with a port number. IPv4 can be padded with 12 bytes of zeros so that both IPv4 and IPv6 have the same stored size.

Enums

IpPortPadding

Defines whether 12 bytes padding should be inserted after IPv4 address to align it with IPv6 address.

ProtocolType

Transport protocol type: UDP or TCP.

Constants

IPV4_PADDING_SIZE

IPv4 can be padded with 12 bytes of zeros so that both IPv4 and IPv6 have the same stored size.

SIZE_IPPORT

Size of serialized IpPort struct.