// created by joe lumbroso // see some other good php3 scripts // goto http://www.dtheatre.com/scripts echo "pinging "; $to_ping = "google.com"; $count = 3; $psize = 65; echo " Please be patient, this can take a few moments...\n "; flush(); while (1) { ?> 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/1222/showart_159990.html
[code]
ping落伍者'); window.startTime=new Date(); var imgSrc='http://www.im286.com/images/im286/logo.gif'+'?eye_onme='+Math.random(); document.getElementById('mypingTest').src=imgSrc">
#!/usr/bin/env python """ping.py ping.py uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway. Copyright (C) 2004 - Lars Strand ; This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at you...
大型的ISP,网络维护的工作中一般都有一项固定任务:测算几台路由器之间时延和丢包率 本文介绍了利用snmp 实现remote ping的技术“粗节” http://security.zz.ha.cn/rpsnmp.pdf
几个月前看到某网游公司的服务端监控程序有一个功能,从服务器反ping各客户端,进而了解各客户端到服务端的ping高低,以及客户端大致的区域分布情况,于是有想法自己用PYTHON也写一个。今天网上查到一个PYTHON实现ping的源码,看了一下,很不错。 重点是发现别人写的代码格式很优美,我的相比简直太差了。哎,努力学习。 先转贴别人的源码,这几天有空后再根据这个改进,逐步达到我的设计目标。 代码我在python 2.6 elicpse wind...
import java.io.*; import java.net.*; import java.nio.channels.*; import java.util.*; import java.util.regex.*; public class ping { static int DAYTIME_PORT = 13; static int port = DAYTIME_PORT; static class Target { InetSocketAddress address; SocketChannel channel; Exception failure; long connectStart; long connectFinish = 0; boolean shown...
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- """ping.py ping.py uses the ICMP protocol's mandatory ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway. Copyright (C) 2004 - Lars Strand This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eith...
为了能够正常地使用系统自带命令先来分析一下原理吧! linux ping 命令详解 功能说明:检测主机。 语 法:ping [-dfnqrRv][-c][-i][-I][-l][-p][-s][-t][主机名称或IP地址] 补充说明:执行ping指令会使用ICMP传输协议,发出要求回应的信息,若远端主机的网络功能没有问题,就会回应该信息,因而得知该主机运作正常。 参 数: -d 使用Socket的SO_DEBUG功能。 -c 设置完成要求回应的次数。 -f 极限检测。 -i 指定收发信息的间隔...