Class RawServer

java.lang.Object
java.lang.Thread
dev.forbit.server.abstracts.Server
dev.forbit.server.networks.raw.RawServer
All Implemented Interfaces:
ServerInterface, Runnable

public class RawServer extends Server
  • Constructor Details

  • Method Details

    • onConnect

      public void onConnect(Client client)
      Description copied from interface: ServerInterface
      Fired when a client is registered on the TCP and UDP server.

      Client should have a Channel and an Address.

    • onDisconnect

      public void onDisconnect(Client client)
      Description copied from interface: ServerInterface
      Fired when the client disconnects from the server.
    • getTimeout

      public int getTimeout()
      Description copied from interface: ServerInterface
      How many milliseconds we should wait before force disconnecting the client from the server.
      Returns:
      the timeout in milliseconds