Interface NetherNetServerSignaling.NewConnectionHandler
- Enclosing interface:
- NetherNetServerSignaling
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface for new connection handling.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonConnect(long connectionId, String remoteNetworkId, String payload, @Nullable InetSocketAddress clientAddress, @Nullable PlayerInfo player) Called when a new connection is initiated by a remote peer.
-
Method Details
-
onConnect
void onConnect(long connectionId, String remoteNetworkId, String payload, @Nullable InetSocketAddress clientAddress, @Nullable PlayerInfo player) Called when a new connection is initiated by a remote peer.- Parameters:
connectionId- The unique connection ID for this session.remoteNetworkId- The Network ID of the remote peer.payload- The initial signaling payload from the remote peer.clientAddress- The address the peer signalled from, seeding the child channel before ICE settles, or null if the signalling cannot tell.player- The peer's validated identity, or null if this signalling does not validate one.
-