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
FieldsModifier and TypeFieldDescriptionprivate boolean
private final byte[]
private final Socket
private static final org.slf4j.Logger
private final String
private static final int
private static final int
private static final int
private static final int
private static final int
private final ServerInterface
Fields inherited from class net.minecraft.server.rcon.thread.GenericThread
name, running, thread
-
Constructor Summary
ConstructorsConstructorDescriptionRconClient
(ServerInterface pServerInterface, String pRconPassword, Socket pClient) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
void
run()
private void
Sends the given response message to the clientprivate void
private void
sendCmdResponse
(int pId, String pMessage) Splits the response message into individual packets and sends each onevoid
stop()
Methods inherited from class net.minecraft.server.rcon.thread.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 pServerInterface, String pRconPassword, Socket pClient)
-
-
Method Details
-
run
public void run() -
send
Sends the given response message to the client- Throws:
IOException
-
sendAuthFailure
- Throws:
IOException
-
sendCmdResponse
Splits the response message into individual packets and sends each one- Throws:
IOException
-
stop
public void stop()- Overrides:
stop
in classGenericThread
-
closeSocket
private void closeSocket()
-