Package net.minecraft.server.rcon.thread
Class RconClient
java.lang.Object
net.minecraft.server.rcon.thread.GenericThread
net.minecraft.server.rcon.thread.RconClient
- All Implemented Interfaces:
Runnable
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private byte[]
private Socket
private static org.apache.logging.log4j.Logger
private String
private static int
private static int
private static int
private static int
private static int
private ServerInterface
Fields inherited from class net.minecraft.server.rcon.thread.GenericThread
name, running, thread
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
run()
private void
private void
private void
sendCmdResponse(int p_11595_, String p_11596_)
void
stop()
Methods inherited from class net.minecraft.server.rcon.thread.GenericThread
isRunning, start
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SERVERDATA_AUTH
private static final int SERVERDATA_AUTH- See Also:
- Constant Field Values
-
SERVERDATA_EXECCOMMAND
private static final int SERVERDATA_EXECCOMMAND- See Also:
- Constant Field Values
-
SERVERDATA_RESPONSE_VALUE
private static final int SERVERDATA_RESPONSE_VALUE- See Also:
- Constant Field Values
-
SERVERDATA_AUTH_RESPONSE
private static final int SERVERDATA_AUTH_RESPONSE- See Also:
- Constant Field Values
-
SERVERDATA_AUTH_FAILURE
private static final int SERVERDATA_AUTH_FAILURE- See Also:
- Constant Field Values
-
authed
private boolean authed -
client
-
buf
private final byte[] buf -
rconPassword
-
serverInterface
-
-
Constructor Details
-
RconClient
RconClient(ServerInterface p_11587_, String p_11588_, Socket p_11589_)
-
-
Method Details
-
run
public void run() -
send
- Throws:
IOException
-
sendAuthFailure
- Throws:
IOException
-
sendCmdResponse
- Throws:
IOException
-
stop
public void stop()- Overrides:
stop
in classGenericThread
-
closeSocket
private void closeSocket()
-