Interface NetServer

All Superinterfaces:
NetworkApplication, Runnable
All Known Implementing Classes:
DTLSServer, PlainTCPServer, PlainUDPServer, TCPServer, TLSServer, UDPServer

public interface NetServer extends NetworkApplication
  • Method Details

    • setConnectionCallback

      void setConnectionCallback(Consumer<SocketConnection> handler)
      Sets the callback for a new incoming request.

      The first parameter of this callback is an SocketConnection instance representing the new connection from the client.
      Parameters:
      handler - The connection callback