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
FieldsModifier and TypeFieldDescriptionstatic 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 withOperatorIdentity.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>TheNetherChannelMetricsto report per-channel events to.static final io.netty.channel.ChannelOption<tel.schich.libdatachannel.PeerConnectionConfiguration>ThePeerConnectionConfigurationused 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>TheNetherServerMetricsto report listener wide events to, set on the server channel.static final io.netty.channel.ChannelOption<IpRangeSet>Relays whose PROXY protocol v2 header is read on the ICE port, so their datagrams count as coming from the client the header declares.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.static final io.netty.channel.ChannelOption<NetherServerThrottle>TheNetherServerThrottlethat decides whether a join may go ahead, set on the server channel and consulted before the join's native peer is created.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 -
Method Summary
Methods inherited from class io.netty.channel.ChannelOption
exists, newInstance, validate, valueOf, valueOfMethods inherited from class io.netty.util.AbstractConstant
compareTo, equals, hashCode, id, name, toString
-
Field Details
-
NETHER_PEER_CONNECTION_CONFIG
public static final io.netty.channel.ChannelOption<tel.schich.libdatachannel.PeerConnectionConfiguration> NETHER_PEER_CONNECTION_CONFIGThePeerConnectionConfigurationused 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
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
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
The identity a client presents in its offer, derived for the player it connects on behalf of withOperatorIdentity.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 withTokenTrust.ANY, since no auth service issued it. -
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 toTokenTrust.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, soTokenTrust.MINECRAFT_AUTHcannot verify it andTokenTrust.ANYrefuses it. -
NETHER_SERVER_RTC_HANDSHAKE_TIMEOUT_SECONDS
public static final io.netty.channel.ChannelOption<Integer> NETHER_SERVER_RTC_HANDSHAKE_TIMEOUT_SECONDSThe timeout in seconds for completing the WebRTC handshake on the server side before automatically closing the connection. -
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_SERVER_PROXY_PROTOCOL
Relays whose PROXY protocol v2 header is read on the ICE port, so their datagrams count as coming from the client the header declares. Needs a fixed ICE port, seeNETHER_SERVER_ICE_ADDRESS. While set, peers only come through these relays: their own candidates are not checked, so every reply goes back through the relay a peer came through, and the port drops anything else but STUN responses to its own requests. Empty by default. -
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. -
NETHER_METRICS
TheNetherChannelMetricsto 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
TheNetherServerMetricsto report listener wide events to, set on the server channel. Unset by default, in which case nothing is reported. -
NETHER_SERVER_THROTTLE
TheNetherServerThrottlethat decides whether a join may go ahead, set on the server channel and consulted before the join's native peer is created. Unset by default, like RakNet'sRAK_THROTTLE, in which case every join goes ahead;DefaultNetherServerThrottlelimits joins per address.
-
-
Constructor Details
-
NetherChannelOption
-