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

Type Ping

object --+
         |
        Ping

Known Subclasses:
PingThread

Class that provides syncronous icmp ping.
Method Summary
  __init__(self, tries, timeout, chunkSize, fileDescriptor)
  __del__(self)
  checkTimeouts(self)
check to see if pingJobs in jobqueue have timed out
  closePingSocket(self)
unregister poll and close socket
  createPingSocket(self)
make an ICMP socket to use for sending and receiving pings
  eventLoop(self, sendqueue)
  ping(self, ips)
Perform async ping of a list of ips returns (goodips, badips).
  pingJobFail(self, pj)
PingJob has failed remove from jobqueue.
  pingJobSucceed(self, pj)
PingJob completed successfully.
  recvPacket(self)
receive a packet and decode its header
  sendPacket(self, pingJob)
Take a pingjob and send an ICMP packet for it
  sendPackets(self)
send numbtosend number of pingJobs and re
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

checkTimeouts(self)

check to see if pingJobs in jobqueue have timed out

closePingSocket(self)

unregister poll and close socket

createPingSocket(self)

make an ICMP socket to use for sending and receiving pings

ping(self, ips)

Perform async ping of a list of ips returns (goodips, badips).

pingJobFail(self, pj)

PingJob has failed remove from jobqueue.

pingJobSucceed(self, pj)

PingJob completed successfully.

recvPacket(self)

receive a packet and decode its header

sendPacket(self, pingJob)

Take a pingjob and send an ICMP packet for it

sendPackets(self)

send numbtosend number of pingJobs and re

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