Package net.minecraft.server.rcon.thread
Class QueryThreadGs4
java.lang.Object
net.minecraft.server.rcon.thread.GenericThread
net.minecraft.server.rcon.thread.QueryThreadGs4
- All Implemented Interfaces:
- Runnable
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final byte[]private static final longprivate static final Stringprivate static final Stringprivate Stringprivate longprivate longprivate static final org.slf4j.Loggerprivate final intprivate final intprivate static final longprivate final NetworkDataOutputStreamprivate final ServerInterfaceprivate Stringprivate final Stringprivate final intprivate DatagramSocketprivate final Map<SocketAddress,QueryThreadGs4.RequestChallenge> private final StringFields inherited from class net.minecraft.server.rcon.thread.GenericThreadname, running, thread
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate byte[]buildRuleResponse(DatagramPacket p_11559_) static QueryThreadGs4create(ServerInterface p_11554_) private byte[]getIdentBytes(SocketAddress p_11552_) private booleanprivate booleanprocessPacket(DatagramPacket p_11550_) private voidprivate voidrecoverSocketError(Exception p_11548_) voidrun()private voidsendChallenge(DatagramPacket p_11564_) private voidsendTo(byte[] p_11556_, DatagramPacket p_11557_) booleanstart()private BooleanvalidChallenge(DatagramPacket p_11561_) Methods inherited from class net.minecraft.server.rcon.thread.GenericThreadisRunning, stop
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
GAME_TYPE- See Also:
 
- 
GAME_ID- See Also:
 
- 
CHALLENGE_CHECK_INTERVALprivate static final long CHALLENGE_CHECK_INTERVAL- See Also:
 
- 
RESPONSE_CACHE_TIMEprivate static final long RESPONSE_CACHE_TIME- See Also:
 
- 
lastChallengeCheckprivate long lastChallengeCheck
- 
portprivate final int port
- 
serverPortprivate final int serverPort
- 
maxPlayersprivate final int maxPlayers
- 
serverName
- 
worldName
- 
socket
- 
bufferprivate final byte[] buffer
- 
hostIp
- 
serverIp
- 
validChallenges
- 
rulesResponse
- 
lastRulesResponseprivate long lastRulesResponse
- 
serverInterface
 
- 
- 
Constructor Details- 
QueryThreadGs4
 
- 
- 
Method Details- 
create
- 
sendTo- Throws:
- IOException
 
- 
processPacket- Throws:
- IOException
 
- 
buildRuleResponse- Throws:
- IOException
 
- 
getIdentBytes
- 
validChallenge
- 
sendChallenge- Throws:
- IOException
 
- 
pruneChallengesprivate void pruneChallenges()
- 
runpublic void run()
- 
startpublic boolean start()- Overrides:
- startin class- GenericThread
 
- 
recoverSocketError
- 
initSocketprivate boolean initSocket()
 
-