Class EndpointConfig

java.lang.Object
io.github.mahmoudimus.quic.connection.EndpointConfig

public final class EndpointConfig extends Object
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.
  • Method Details

    • defaults

      public static EndpointConfig 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

      public static EndpointConfig.Builder 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

      public List<QuicVersion> supportedVersions()
      The QUIC versions accepted, in preference order.
      Returns:
      the versions