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

Class Ping

source code

object --+
         |
        Ping
Known Subclasses:
PingThread.PingThread

Class that provides syncronous icmp ping.

Instance Methods [hide private]
 
__init__(self, tries=2, timeout=2, chunkSize=10, fileDescriptor=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__del__(self) source code
 
createPingSocket(self)
make an ICMP socket to use for sending and receiving pings
source code
 
closePingSocket(self)
unregister poll and close socket
source code
 
sendPackets(self)
send numbtosend number of pingJobs and re
source code
 
sendPacket(self, pingJob)
Take a pingjob and send an ICMP packet for it
source code
 
recvPacket(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
 
checkTimeouts(self)
check to see if pingJobs in jobqueue have timed out
source code
 
eventLoop(self, sendqueue) source code
 
ping(self, ips)
Perform async ping of a list of ips returns (goodips, badips).
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tries=2, timeout=2, chunkSize=10, fileDescriptor=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)