Package net.minecraft.network.rcon
Class QueryThread
java.lang.Object
net.minecraft.network.rcon.RConThread
net.minecraft.network.rcon.QueryThread
- All Implemented Interfaces:
- Runnable
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final byte[]private Stringprivate longprivate longprivate static final org.apache.logging.log4j.Loggerprivate final intprivate final intprivate final RConOutputStreamprivate final IServerprivate Stringprivate final Stringprivate final intprivate DatagramSocketprivate final Map<SocketAddress,QueryThread.Auth> private final StringFields inherited from class net.minecraft.network.rcon.RConThreadname, running, thread
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate byte[]buildRuleResponse(DatagramPacket p_72624_1_) static QueryThreadprivate byte[]getIdentBytes(SocketAddress p_72625_1_) private booleanprivate booleanprocessPacket(DatagramPacket p_72621_1_) private voidprivate voidrecoverSocketError(Exception p_72623_1_) voidrun()private voidsendChallenge(DatagramPacket p_72622_1_) private voidsendTo(byte[] p_72620_1_, DatagramPacket p_72620_2_) booleanstart()private BooleanvalidChallenge(DatagramPacket p_72627_1_) Methods inherited from class net.minecraft.network.rcon.RConThreadisRunning, stop
- 
Field Details- 
LOGGERprivate static final org.apache.logging.log4j.Logger LOGGER
- 
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- 
QueryThread
 
- 
- 
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- RConThread
 
- 
recoverSocketError
- 
initSocketprivate boolean initSocket()
 
-