iroh_net::relay

Module server

Source
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Available on crate feature iroh-relay only.
Expand description

A fully-fledged iroh-relay server over HTTP or HTTPS.

This module provides an API to run a full fledged iroh-relay server. It is primarily used by the iroh-relay binary in this crate. It can be used to run a relay server in other locations however.

This code is fully written in a form of structured-concurrency: every spawned task is always attached to a handle and when the handle is dropped the tasks abort. So tasks can not outlive their handle. It is also always possible to await for completion of a task. Some tasks additionally have a method to do graceful shutdown.

Structs§

ClientConnHandlerDeprecated
Handle incoming connections to the Server.
LimitsDeprecated
Rate limits.
MetricsDeprecated
Metrics tracked for the relay server
RelayConfigDeprecated
Configuration for the Relay HTTP and HTTPS server.
ServerDeprecated
A running Relay + STUN server.
ServerActorTaskDeprecated
The task for a running server actor.
ServerConfigDeprecated
Configuration for the full Relay & STUN server.
StunConfigDeprecated
Configuration for the STUN server.
TlsConfigDeprecated
TLS configuration for Relay server.

Enums§

CertConfigDeprecated
TLS certificate configuration.
MaybeTlsStreamServerDeprecated
The main underlying IO stream type used for the relay server.