👎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§
- http
Deprecated - HTTP-specific constants for the relay server and client.
- server
Deprecated iroh-relay
- A fully-fledged iroh-relay server over HTTP or HTTPS.
Structs§
- Http
Client Deprecated - An HTTP Relay client.
- Http
Client Builder Deprecated - Build a Client.
- Http
Client Receiver Deprecated - Receiving end of a
Client
. - Relay
Conn Deprecated - A connection to a relay server.
- Relay
Map Deprecated - Configuration of all the relay servers that can be used.
- Relay
Node Deprecated - Information on a specific relay server.
- Relay
Url - A URL identifying a relay server.
Enums§
- Http
Client Error Deprecated - Possible connection errors on the
Client
- Received
Message Deprecated - The type of message received by the
Conn
from a relay server. - Relay
Mode Deprecated - Configuration of the relay servers for an
Endpoint
.
Constants§
- ENV_
FORCE_ STAGING_ RELAYS Deprecated Non- test
- Environment variable to force the use of staging relays.
- MAX_
PACKET_ SIZE Deprecated - 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_ infra Deprecated - Returns
true
if the use of staging relays is forced.