Class RconClient

java.lang.Object
net.minecraft.server.rcon.thread.GenericThread
net.minecraft.server.rcon.thread.RconClient
All Implemented Interfaces:
Runnable

public class RconClient extends GenericThread
  • 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

      private final Socket client
    • buf

      private final byte[] buf
    • rconPassword

      private final String rconPassword
    • serverInterface

      private final ServerInterface serverInterface
  • Constructor Details

  • Method Details

    • run

      public void run()
    • send

      private void send(int pId, int pType, String pMessage) throws IOException
      Sends the given response message to the client
      Throws:
      IOException
    • sendAuthFailure

      private void sendAuthFailure() throws IOException
      Throws:
      IOException
    • sendCmdResponse

      private void sendCmdResponse(int pId, String pMessage) throws IOException
      Splits the response message into individual packets and sends each one
      Throws:
      IOException
    • stop

      public void stop()
      Overrides:
      stop in class GenericThread
    • closeSocket

      private void closeSocket()