Interface ListeningHandle

  • All Known Implementing Classes:
    ListeningHandleImpl


    public interface ListeningHandle
    Handle to listening socket waiting for connections from D2Connector.

    Warning: Instance should be closed because it keeps a thread for handling incoming connections running.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void close​()
      Close listening socket.
      java.net.InetAddress getHost​()
      Get address of listening socket.
      int getPort​()
      Get port number of listening socket.
    • Method Detail

      • close

        void close​()
        Close listening socket.
      • getHost

        java.net.InetAddress getHost​()
        Get address of listening socket.
        Returns:
        address of listening socket
      • getPort

        int getPort​()
        Get port number of listening socket.
        Returns:
        port number