Interface ConnectivityManager

    • Method Detail

      • getAvailable

        int getAvailable()
        Returns the numbers of available connections.
        Returns:
        the numbers of available connections.
      • getConnectionInfo

        String getConnectionInfo()
        Returns a String representing how the service can be joined from remote clients.

        Examples of such strings are:

        • 192.168.0.1:4000 for a service listening on a TCP port on these addresses and ports.
        • for a service listening on a TCP port on these addresses and ports.
        • comm:com6;baudrate=115200 for a service listening on a COMM port with these parameters
        Returns:
        the connectivity URL, as a String.
      • addConnectivityListener

        void addConnectivityListener​(ConnectivityListener listener)
        Adds a listener.
        Parameters:
        listener - the listener.
      • removeConnectivityListener

        void removeConnectivityListener​(ConnectivityListener listener)
        Removes a listener.
        Parameters:
        listener - the listener.