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
Nested Classes -
Field Summary
FieldsModifier 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.RConThread
name, running, thread -
Constructor Summary
Constructors -
Method Summary
Modifier 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.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:
startin classRConThread
-
recoverSocketError
-
initSocket
private boolean initSocket()
-