p2p/protocol/circuitv2/relay/options library
Classes
- RelayOptions
- Options for the relay service.
Functions
-
withConnectionData(
int connectionData) → Option - WithConnectionData sets the maximum data transfer for connections in bytes.
-
withConnectionDuration(
int connectionDuration) → Option - WithConnectionDuration sets the maximum duration for connections in seconds.
-
withMaxConnections(
int maxConnections) → Option - WithMaxConnections sets the maximum number of concurrent connections.
-
withMaxReservations(
int maxReservations) → Option - WithMaxReservations sets the maximum number of concurrent reservations.
-
withReservationTtl(
int reservationTtl) → Option - WithReservationTtl sets the time-to-live for reservations in seconds.
-
withResources(
Resources resources) → Option - WithResources sets the resources for the relay service.
Typedefs
- Option = void Function(RelayOptions options)
- Option is a function that configures a RelayOptions.