Interface TransportLayer<P extends Packet<?>>

    • Method Summary

      Modifier and Type Method Description
      void connect​(java.net.InetSocketAddress remoteAddress)
      Connect to the remote side
      void disconnect()
      Disconnect from the remote side
      boolean isConnected()
      Checks if the transport layer is currently connected.
      void write​(P packet)
      Write the packet to the transport.
    • Method Detail

      • connect

        void connect​(java.net.InetSocketAddress remoteAddress)
              throws java.io.IOException
        Connect to the remote side
        Parameters:
        remoteAddress - The remote address to connect to
        Throws:
        java.io.IOException
      • disconnect

        void disconnect()
                 throws java.io.IOException
        Disconnect from the remote side
        Throws:
        java.io.IOException
      • isConnected

        boolean isConnected()
        Checks if the transport layer is currently connected.