Class NetherChannelOption<T>

java.lang.Object
io.netty.util.AbstractConstant<io.netty.channel.ChannelOption<T>>
io.netty.channel.ChannelOption<T>
org.cloudburstmc.netty.channel.nethernet.config.NetherChannelOption<T>
All Implemented Interfaces:
io.netty.util.Constant<io.netty.channel.ChannelOption<T>>, Comparable<io.netty.channel.ChannelOption<T>>

public class NetherChannelOption<T> extends io.netty.channel.ChannelOption<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final io.netty.channel.ChannelOption<Integer>
    How long, in milliseconds, one client attempt has to finish signaling, ICE and DTLS before the attempt is given up.
    static final io.netty.channel.ChannelOption<OperatorIdentity>
    The identity a client presents in its offer, derived for the player it connects on behalf of with OperatorIdentity.forPlayer(java.lang.String, java.lang.String).
    static final io.netty.channel.ChannelOption<Integer>
    How many attempts a client connect gets before it fails, the first one included.
    static final io.netty.channel.ChannelOption<TokenTrust>
    How a client trusts the identity the server answers with.
    static final io.netty.channel.ChannelOption<Boolean>
    Whether to check the address a peer signaled from when its offer holds nothing routable.
    static final io.netty.channel.ChannelOption<NetherChannelMetrics>
    The NetherChannelMetrics to report per-channel events to.
    static final io.netty.channel.ChannelOption<tel.schich.libdatachannel.PeerConnectionConfiguration>
    The PeerConnectionConfiguration used for the underlying peer connections.
    static final io.netty.channel.ChannelOption<InetSocketAddress>
    Where ICE binds on the server, for a media port other than the signaling port.
    static final io.netty.channel.ChannelOption<NetherServerMetrics>
    The NetherServerMetrics to report listener wide events to, set on the server channel.
    static final io.netty.channel.ChannelOption<Integer>
    The timeout in seconds for completing the WebRTC handshake on the server side before automatically closing the connection.

    Fields inherited from class io.netty.channel.ChannelOption

    ALLOCATOR, ALLOW_HALF_CLOSURE, AUTO_CLOSE, AUTO_READ, CONNECT_TIMEOUT_MILLIS, DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATION, IP_MULTICAST_ADDR, IP_MULTICAST_IF, IP_MULTICAST_LOOP_DISABLED, IP_MULTICAST_TTL, IP_TOS, MAX_MESSAGES_PER_READ, MAX_MESSAGES_PER_WRITE, MESSAGE_SIZE_ESTIMATOR, RCVBUF_ALLOCATOR, SINGLE_EVENTEXECUTOR_PER_GROUP, SO_BACKLOG, SO_BROADCAST, SO_KEEPALIVE, SO_LINGER, SO_RCVBUF, SO_REUSEADDR, SO_SNDBUF, SO_TIMEOUT, TCP_FASTOPEN, TCP_FASTOPEN_CONNECT, TCP_NODELAY, WRITE_BUFFER_HIGH_WATER_MARK, WRITE_BUFFER_LOW_WATER_MARK, WRITE_BUFFER_WATER_MARK, WRITE_SPIN_COUNT
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Methods inherited from class io.netty.channel.ChannelOption

    exists, newInstance, validate, valueOf, valueOf

    Methods inherited from class io.netty.util.AbstractConstant

    compareTo, equals, hashCode, id, name, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • NETHER_PEER_CONNECTION_CONFIG

      public static final io.netty.channel.ChannelOption<tel.schich.libdatachannel.PeerConnectionConfiguration> NETHER_PEER_CONNECTION_CONFIG
      The PeerConnectionConfiguration used for the underlying peer connections. The ICE servers the signaling hands out are added to the ones set here, and the transport's message size limit applies unless the configuration names its own.
    • NETHER_CLIENT_HANDSHAKE_TIMEOUT_MS

      public static final io.netty.channel.ChannelOption<Integer> NETHER_CLIENT_HANDSHAKE_TIMEOUT_MS
      How long, in milliseconds, one client attempt has to finish signaling, ICE and DTLS before the attempt is given up. Defaults to 3000, which suits LAN discovery; a connection across the internet with HTTP signaling wants the same order as a connect timeout.
    • NETHER_CLIENT_MAX_HANDSHAKE_ATTEMPTS

      public static final io.netty.channel.ChannelOption<Integer> NETHER_CLIENT_MAX_HANDSHAKE_ATTEMPTS
      How many attempts a client connect gets before it fails, the first one included. Defaults to 3. Signaling that sends the offer in one piece, such as HTTP, gets one attempt whatever this says: the server would refuse a repeat as a duplicate join while the first is pending.
    • NETHER_CLIENT_IDENTITY

      public static final io.netty.channel.ChannelOption<OperatorIdentity> NETHER_CLIENT_IDENTITY
      The identity a client presents in its offer, derived for the player it connects on behalf of with OperatorIdentity.forPlayer(java.lang.String, java.lang.String). Derive it per connection: its token expires after an hour. Unset, the offer carries no assertion, which a server that validates identities refuses. A server accepts an operator signed identity only with TokenTrust.ANY, since no auth service issued it.
    • NETHER_CLIENT_SERVER_TRUST

      public static final io.netty.channel.ChannelOption<TokenTrust> NETHER_CLIENT_SERVER_TRUST
      How a client trusts the identity the server answers with. Unset, the answer's identity is not checked, which suits a hop that TLS on the signaling already protects. Set it to TokenTrust.pinnedTo(java.security.PublicKey...) with the server's public key to confirm the server is the one holding that identity; the connect fails otherwise. The other policies do not fit an answer: a dedicated server's token is issued by its own operator identity and carries no expiry, so TokenTrust.MINECRAFT_AUTH cannot verify it and TokenTrust.ANY refuses it.
    • NETHER_SERVER_RTC_HANDSHAKE_TIMEOUT_SECONDS

      public static final io.netty.channel.ChannelOption<Integer> NETHER_SERVER_RTC_HANDSHAKE_TIMEOUT_SECONDS
      The timeout in seconds for completing the WebRTC handshake on the server side before automatically closing the connection.
    • NETHER_SERVER_ICE_ADDRESS

      public static final io.netty.channel.ChannelOption<InetSocketAddress> NETHER_SERVER_ICE_ADDRESS
      Where ICE binds on the server, for a media port other than the signaling port. A wildcard host gathers on every interface and port 0 leaves the port ephemeral. Unset, ICE uses the bound address when the signaling allows it and ephemeral ports otherwise.
    • NETHER_INFER_PEER_CANDIDATES

      public static final io.netty.channel.ChannelOption<Boolean> NETHER_INFER_PEER_CANDIDATES
      Whether to check the address a peer signaled from when its offer holds nothing routable. Defaults to true, and does nothing for a host that gathered a routable candidate of its own.
      See Also:
    • NETHER_METRICS

      public static final io.netty.channel.ChannelOption<NetherChannelMetrics> NETHER_METRICS
      The NetherChannelMetrics to report per-channel events to. Unset by default, in which case nothing is reported, and null clears it again. A child option on a server, since it is the accepted connection that reports; an option on a client.
    • NETHER_SERVER_METRICS

      public static final io.netty.channel.ChannelOption<NetherServerMetrics> NETHER_SERVER_METRICS
      The NetherServerMetrics to report listener wide events to, set on the server channel. Unset by default, in which case nothing is reported.
  • Constructor Details

    • NetherChannelOption

      protected NetherChannelOption(String name)