Package org.geysermc.geyser.network
Class BedrockPingHandler
java.lang.Object
org.geysermc.geyser.network.BedrockPingHandler
Handles Bedrock pings (either via raknet, or providing to the signaling server for nethernet).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.cloudburstmc.protocol.bedrock.BedrockPongonQuery(long serverId, InetSocketAddress inetSocketAddress, @Nullable String hostname)
-
Constructor Details
-
BedrockPingHandler
-
-
Method Details
-
onQuery
public org.cloudburstmc.protocol.bedrock.BedrockPong onQuery(long serverId, InetSocketAddress inetSocketAddress, @Nullable String hostname) - Parameters:
serverId- the server ID to advertise; the RakNet GUID when answering a RakNet pinginetSocketAddress- the address the query came fromhostname- the hostname the client queried, such as an HTTP Host header; null if unknown, e.g. for RakNet pings- Returns:
- the pong to answer the query with
-