Java HTTP Port Find isStart0(String host, int port)

Here you can find the source of isStart0(String host, int port)

Description

is Start

License

Open Source License

Declaration

public static boolean isStart0(String host, int port) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.net.Socket;

public class Main {

    public static boolean isStart0(String host, int port) {
        boolean status = false;
        Socket socket = null;//from w w w.j a v a 2 s .c o m
        try {
            socket = new Socket(host, port);
            status = true;
            socket.close();
        } catch (Exception e) {
        } finally {
        }
        return status;
    }
}

Related

  1. isServerListening(String host, int port)
  2. isServerListening(String host, int port)
  3. isServerPortFree(int port)
  4. isServing(String host, int port)
  5. isStart(String host, int port)
  6. issueHttpRequest(String methodName, int[] rc, String host, String port, String path)
  7. isTcpPortOpen(int port)
  8. isTcpPortOpenCallable(final int port)
  9. isTcpPortOpenCallable(final int port)