iroh_net

Module relay

Source
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Expand description

Package relay implements a revised version of the Designated Encrypted Relay for Packets (DERP) protocol written by Tailscale. The relay routes packets to clients using curve25519 keys as addresses. The relay is used to proxy encrypted QUIC packets through the relay servers when a direct path cannot be found or opened. The relay is a last resort. If both sides have very aggressive NATs, or firewalls, or no IPv6, we use the relay connection. Based on tailscale/derp/derp.go

Modules§

httpDeprecated
HTTP-specific constants for the relay server and client.
serverDeprecatediroh-relay
A fully-fledged iroh-relay server over HTTP or HTTPS.

Structs§

HttpClientDeprecated
An HTTP Relay client.
HttpClientBuilderDeprecated
Build a Client.
HttpClientReceiverDeprecated
Receiving end of a Client.
RelayConnDeprecated
A connection to a relay server.
RelayMapDeprecated
Configuration of all the relay servers that can be used.
RelayNodeDeprecated
Information on a specific relay server.
RelayUrl
A URL identifying a relay server.

Enums§

HttpClientErrorDeprecated
Possible connection errors on the Client
ReceivedMessageDeprecated
The type of message received by the Conn from a relay server.
RelayModeDeprecated
Configuration of the relay servers for an Endpoint.

Constants§

ENV_FORCE_STAGING_RELAYSDeprecatedNon-test
Environment variable to force the use of staging relays.
MAX_PACKET_SIZEDeprecated
The maximum size of a packet sent over relay. (This only includes the data bytes visible to magicsock, not including its on-wire framing overhead)

Functions§

force_staging_infraDeprecated
Returns true if the use of staging relays is forced.