Contents
Class IceModule
java.lang.Object
com.hypixel.hytale.server.core.io.ice.IceModule
Attaches an
IceResponder to every quiche listener, so connectivity checks are answered on
the socket that carries the connection.
Only the quiche transport is supported. Its reader loop demultiplexes STUN before handing bytes to QUIC.
A host bound on both address families has two listeners and two sockets, so the responders are per listener rather than global.
A player-hosted world uses its client to mint credentials and configure each peer.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanregisterPeer(IceCredentials local, IceCredentials remote, List<InetSocketAddress> remoteCandidates) Registers a peer with every quiche listener, so a check arriving on either family is answered.static voidshutdown()Drops every registration and detaches the handlers, for when the world stops accepting joins.static voidunregisterPeer(String localUfrag)
-
Method Details
-
registerPeer
public static boolean registerPeer(@Nonnull IceCredentials local, @Nonnull IceCredentials remote, @Nonnull List<InetSocketAddress> remoteCandidates) Registers a peer with every quiche listener, so a check arriving on either family is answered.- Returns:
- false when no listener could accept it, which means ICE hosting is unavailable here
-
unregisterPeer
-
shutdown
public static void shutdown()Drops every registration and detaches the handlers, for when the world stops accepting joins.
-