Package Products :: Package ZenStatus :: Module AsyncPing :: Class Ping |
[hide private]
[frames] | no frames]

# Class Ping

source code

    object --+
             |
            Ping

Class that provides asyncronous icmp ping.

Instance Methods | [hide private]
__init__(self, tries=2, timeout=2, sock=None) | source code
reconfigure(self, tries=2, timeout=2) | source code
createPingSocket(self, sock) make an ICMP socket to use for sending and receiving pings | source code
fileno(self) | source code
doRead(self) | source code
connectionLost(self, unused) | source code
logPrefix(self) | source code
sendPacket(self, pingJob) Take a pingjob and send an ICMP packet for it | source code
recvPackets(self) receive a packet and decode its header | source code
pingJobSucceed(self, pj) PingJob completed successfully. | source code
pingJobFail(self, pj) PingJob has failed remove from jobqueue. | source code
reportPingJob(self, pj) | source code
checkTimeout(self, pj) | source code
jobCount(self) | source code
ping(self, ip) Ping the ip and return the result in a deferred | source code

Method Details | [hide private]

### __init__(self, tries=2, timeout=2, sock=None) (Constructor) | source code
Overrides: object.__init__ (inherited documentation)