Class RconClient
java.lang.Object
net.minecraft.server.rcon.thread.GenericThread
net.minecraft.server.rcon.thread.RconClient
- All Implemented Interfaces:
Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final byte[]private final Socketprivate static final org.slf4j.Loggerprivate final Stringprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate final ServerInterfaceFields inherited from class GenericThread
name, running, thread -
Constructor Summary
ConstructorsConstructorDescriptionRconClient(ServerInterface serverInterface, String rconPassword, Socket socket) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidvoidrun()private voidprivate voidprivate voidsendCmdResponse(int requestid, String response) voidstop()Methods inherited from class GenericThread
isRunning, start
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SERVERDATA_AUTH
private static final int SERVERDATA_AUTH- See Also:
-
SERVERDATA_EXECCOMMAND
private static final int SERVERDATA_EXECCOMMAND- See Also:
-
SERVERDATA_RESPONSE_VALUE
private static final int SERVERDATA_RESPONSE_VALUE- See Also:
-
SERVERDATA_AUTH_RESPONSE
private static final int SERVERDATA_AUTH_RESPONSE- See Also:
-
SERVERDATA_AUTH_FAILURE
private static final int SERVERDATA_AUTH_FAILURE- See Also:
-
authed
private boolean authed -
client
-
buf
private final byte[] buf -
rconPassword
-
serverInterface
-
-
Constructor Details
-
RconClient
RconClient(ServerInterface serverInterface, String rconPassword, Socket socket)
-
-
Method Details
-
run
public void run() -
send
- Throws:
IOException
-
sendAuthFailure
- Throws:
IOException
-
sendCmdResponse
- Throws:
IOException
-
stop
public void stop()- Overrides:
stopin classGenericThread
-
closeSocket
private void closeSocket()
-