Skip to main content

Module endpoint

Module endpoint 

Source
Expand description

The two rules connection.md puts on an advertised endpoint, shared by both roles.

A peer that discovers a record over mDNS SHOULD only connect to an address that is not a loopback or unspecified one, and only when the advertised path matches the path-absolute rule of RFC 3986. The client dials servers and the server dials clients under the same rule, so the rule lives here and not in either crate. Both functions are pure string checks: no socket, no resolver.

Functionsยง

is_local_address
Whether address is one a peer must not dial: a loopback or unspecified address, or a host name that is a loopback by rule.
is_path_absolute
Whether path matches the path-absolute rule of RFC 3986, section 3.3.