The Utils methods.
Determines a free port using sockets.
Tries to connect to the server at port to see if it is running.
Args: |
|
---|
Tries to connect to the HTTP server at /status path and specified port to see if it responds successfully.
Args: |
|
---|
原文:http://www.cnblogs.com/hushaojun/p/4467501.html