Settings
Help

Module udp

Module udp 

Source
Available on crate feature experimental-udp only.
Expand description

Encoding and decoding for relay messages

Relay messages are sent along circuits, inside RELAY or RELAY_EARLY cells.

StructsΒ§

AddressPort
Address contained in a ConnectUdp and ConnectedUdp cell which can represent a hostname, IPv4 or IPv6 along a port number.
ConnectUdp
A ConnectUdp message creates a new UDP data stream.
ConnectedUdp
A ConnectedUdp cell sent in response to a ConnectUdp.
Datagram
A Datagram message represents data sent along a UDP stream.

EnumsΒ§

Address
Address representing either a hostname, IPv4 or IPv6.

ConstantsΒ§

MAX_HOSTNAME_LEN πŸ”’
Maximum length of an Address::Hostname set at 255.
T_HOSTNAME πŸ”’
Indicates the payload is a hostname.
T_IPV4 πŸ”’
Indicates the payload is an IPv4.
T_IPV6 πŸ”’
Indicates the payload is an IPv6.