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

Type Ping

object --+
         |
        Ping


Class that provides asyncronous icmp ping.
Method Summary
  __init__(self, tries, timeout, sock)
  checkTimeout(self, pj)
  connectionLost(self, unused)
  createPingSocket(self, sock)
make an ICMP socket to use for sending and receiving pings
  doRead(self)
  fileno(self)
  jobCount(self)
  logPrefix(self)
  ping(self, ip)
Ping the ip and return the result in a deferred
  pingJobFail(self, pj)
PingJob has failed remove from jobqueue.
  pingJobSucceed(self, pj)
PingJob completed successfully.
  recvPackets(self)
receive a packet and decode its header
  reportPingJob(self, pj)
  sendPacket(self, pingJob)
Take a pingjob and send an ICMP packet for it
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

createPingSocket(self, sock)

make an ICMP socket to use for sending and receiving pings

ping(self, ip)

Ping the ip and return the result in a deferred

pingJobFail(self, pj)

PingJob has failed remove from jobqueue.

pingJobSucceed(self, pj)

PingJob completed successfully.

recvPackets(self)

receive a packet and decode its header

sendPacket(self, pingJob)

Take a pingjob and send an ICMP packet for it

Generated by Epydoc 2.1 on Thu Aug 16 09:55:15 2007 http://epydoc.sf.net