Skip to main content

Module addr

Module addr 

Source
Expand description

Endpoint addressing: weida://[fingerprint@]host:port/path.

The path is an opaque identifier (master doc §4). Nothing in the core interprets its structure: no hierarchy, no wildcards, no topic semantics.

The optional fingerprint in the userinfo position names the peer expected to answer: weida://sha256:9f86…@10.0.0.8:7443/samples is a complete description of where to dial and whom to accept, in one string that a discovery record, a config line or a pasted terminal line can carry.

Structs§

EndpointAddr
A parsed weida://[fingerprint@]host[:port]/path address.
InprocAddr
A parsed weida+inproc://<bus>/<path> address.
PipeAddr
A parsed weida+pipe://<pipe-name>/<path> address.
UnixAddr
A parsed weida+unix://<percent-encoded-socket-path>/<path> address.

Enums§

Address
An address of any transport.

Constants§

DEFAULT_PORT
The port a weida:// URL means when it writes none.
MAX_BUS_BYTES
Longest in-process bus name, in bytes: libzmq’s budget for the same thing (decisions/0010 §4.8).
MAX_PATH_BYTES
Maximum endpoint path length in bytes (also the wire cap for DATA key 0).
MAX_PIPE_NAME_BYTES
Longest pipe name accepted, in bytes.
MAX_SOCKET_PATH_BYTES
Longest socket path this platform accepts, in bytes, after decoding.
PIPE_NAMESPACE
The local pipe namespace every PipeAddr is mapped into.
SCHEME
URL scheme of the native transport.
SCHEME_INPROC
URL scheme of the in-process transport.
SCHEME_PIPE
URL scheme of the Windows named-pipe transport.
SCHEME_UNIX
URL scheme of the AF_UNIX transport.

Functions§

validate_endpoint_path
Validates an endpoint path.