[][src]Crate libra_network_address

Modules

encrypted

Structs

DnsName

A minimally parsed DNS name. We don't really do any checking other than enforcing:

EmptyError
NetworkAddress

Libra NetworkAddress is a compact, efficient, self-describing and future-proof network address represented as a stack of protocols. Essentially libp2p's multiaddr but using lcs to describe the binary format.

Enums

IpFilter
ParseError

Possible errors when parsing a human-readable NetworkAddress.

Protocol

A single protocol in the NetworkAddress protocol stack.

Functions

arb_libranet_addr
parse_dns_tcp

parse the &[Protocol] into the "/dns/<domain>/tcp/<port>", "/dns4/<domain>/tcp/<port>", or "/dns6/<domain>/tcp/<port>" prefix and unparsed &[Protocol] suffix.

parse_handshake

parse the &[Protocol] into the "/ln-handshake/<version>" prefix and unparsed &[Protocol] suffix.

parse_ip_tcp

parse the &[Protocol] into the "/ip4/<addr>/tcp/<port>" or "/ip6/<addr>/tcp/<port>" prefix and unparsed &[Protocol] suffix.

parse_memory

parse the &[Protocol] into the "/memory/<port>" prefix and unparsed &[Protocol] suffix.

parse_noise_ik

parse the &[Protocol] into the "/ln-noise-ik/<pubkey>" prefix and unparsed &[Protocol] suffix.