摘要:
public static boolean pingHost(String str) { //str 为要ping的IP地址 boolean result = false; try { Process p = Runtime.getRuntime().exec("ping -c 1 -w 100 " + str); int status = p.waitFor(); if (status == 0) { result = true; } ... 阅读全文
posted @ 2013-11-15 16:53
mushishi
阅读(1164)
评论(0)
推荐(0)

浙公网安备 33010602011771号