2014年1月18日
摘要: 先上结论:通过调用系统自带的Ping命令来实现,使用exitValue()值来判断Ping的结果。按照惯例,0表示ok,1表示不通。private static void pingTest1() throws Exception { String[] ipStrings = { "127.0.0.1", "10.0.0.1", "8.8.8.8", "10.0.0.2", "114.114.114.114", ... 阅读全文
posted @ 2014-01-18 20:09 pzy4447 阅读(1247) 评论(0) 推荐(0) 编辑