Class CheckSocket


  • public class CheckSocket
    extends Object
    • Constructor Detail

      • CheckSocket

        public CheckSocket()
    • Method Detail

      • remotePortTaken

        public static boolean remotePortTaken​(String node,
                                              int port,
                                              int timeout)
        Check if a remote port is taken
        Parameters:
        node - the host to check
        port - the port to check
        timeout - the timeout for the connection
        Returns:
        true if the port is taken false otherwise