Class UDPServer

java.lang.Object
java.lang.Thread
dev.forbit.server.abstracts.UDPServer
All Implemented Interfaces:
ConnectionServer, Runnable
Direct Known Subclasses:
GSONUDPServer, RawUDPServer

public abstract class UDPServer extends Thread implements ConnectionServer
  • Constructor Details

    • UDPServer

      public UDPServer()
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • init

      public boolean init()
      Description copied from interface: ConnectionServer
      Initialise the server.
      Specified by:
      init in interface ConnectionServer
      Returns:
      false if an error occured
    • loop

      public void loop()
      Description copied from interface: ConnectionServer
      The basic loop that happens every tick
      Specified by:
      loop in interface ConnectionServer