Class TcpServerEventAdapter

    • Constructor Detail

      • TcpServerEventAdapter

        public TcpServerEventAdapter()
        Creates a TCP server event adapter with no-op event handlers.
    • Method Detail

      • onServerSocketClosed

        public void onServerSocketClosed​(TcpServer tcpServer)
        Called when the TCP server socket has been closed.
        Specified by:
        onServerSocketClosed in interface TcpServerEventHandler
        Parameters:
        tcpServer - the TCP server whose server socket was closed
      • onConnectionEstablished

        public void onConnectionEstablished​(TcpClient tcpClient)
        Called when a client connection has been established.
        Specified by:
        onConnectionEstablished in interface TcpServerEventHandler
        Parameters:
        tcpClient - the server-side TCP client created for the connection