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 Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final byte[]
private String
private long
private long
private static final org.apache.logging.log4j.Logger
private final int
private final int
private final RConOutputStream
private final IServer
private String
private final String
private final int
private DatagramSocket
private final Map<SocketAddress,
QueryThread.Auth> private final String
Fields inherited from class net.minecraft.network.rcon.RConThread
name, running, thread
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
buildRuleResponse
(DatagramPacket p_72624_1_) static QueryThread
private byte[]
getIdentBytes
(SocketAddress p_72625_1_) private boolean
private boolean
processPacket
(DatagramPacket p_72621_1_) private void
private void
recoverSocketError
(Exception p_72623_1_) void
run()
private void
sendChallenge
(DatagramPacket p_72622_1_) private void
sendTo
(byte[] p_72620_1_, DatagramPacket p_72620_2_) boolean
start()
private Boolean
validChallenge
(DatagramPacket p_72627_1_) Methods inherited from class net.minecraft.network.rcon.RConThread
isRunning, stop
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
lastChallengeCheck
private long lastChallengeCheck -
port
private final int port -
serverPort
private final int serverPort -
maxPlayers
private final int maxPlayers -
serverName
-
worldName
-
socket
-
buffer
private final byte[] buffer -
hostIp
-
serverIp
-
validChallenges
-
rulesResponse
-
lastRulesResponse
private long lastRulesResponse -
serverInterface
-
-
Constructor Details
-
QueryThread
-
-
Method Details
-
create
-
sendTo
- Throws:
IOException
-
processPacket
- Throws:
IOException
-
buildRuleResponse
- Throws:
IOException
-
getIdentBytes
-
validChallenge
-
sendChallenge
- Throws:
IOException
-
pruneChallenges
private void pruneChallenges() -
run
public void run() -
start
public boolean start()- Overrides:
start
in classRConThread
-
recoverSocketError
-
initSocket
private boolean initSocket()
-