Class EndpointConfig
java.lang.Object
io.github.mahmoudimus.quic.connection.EndpointConfig
Settings shared by every connection of an endpoint: how local connection IDs are made, the key
stateless reset tokens derive from, the QUIC versions accepted, and the stateless reset rate
limit. Immutable and shareable.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EndpointConfig.Builderbuilder()A builder starting from the defaults.intThe length of local connection IDs; short header packets are parsed with it.static EndpointConfigdefaults()The default settings: random 8-byte connection IDs that never expire, a random reset key, QUIC version 1 and version 2, at most one stateless reset per 20 ms.The QUIC versions accepted, in preference order.
-
Method Details
-
defaults
The default settings: random 8-byte connection IDs that never expire, a random reset key, QUIC version 1 and version 2, at most one stateless reset per 20 ms.- Returns:
- new default settings (with a fresh reset key)
-
builder
A builder starting from the defaults.- Returns:
- a new builder
-
cidLength
public int cidLength()The length of local connection IDs; short header packets are parsed with it.- Returns:
- 0 to 20
-
supportedVersions
The QUIC versions accepted, in preference order.- Returns:
- the versions
-