common.ping (version 0.1, 9 April 2003)
index
e:\bothans\common\ping.py

Peer Management

 
Modules
            
common
logging
threading
time
 
Classes
            
common.messagehandling.MessageHandler
PingResponder
PongHandler
threading.Thread(threading._Verbose)
PingManager
 
class PingManager(threading.Thread)
       
  
Method resolution order:
PingManager
threading.Thread
threading._Verbose

Methods defined here:
__init__(self, peer, router, maxidle=5, timeout=5)
run(self)

Data and non-method functions defined here:
DEFAULT_MAX_IDLE = 5
DEFAULT_TIMEOUT = 5
__doc__ = None
__module__ = 'common.ping'

Methods inherited from threading.Thread:
_Thread__bootstrap = __bootstrap(self)
_Thread__delete = __delete(self)
_Thread__stop = __stop(self)
__repr__(self)
_set_daemon(self)
getName(self)
isAlive(self)
isDaemon(self)
join(self, timeout=None)
setDaemon(self, daemonic)
setName(self, name)
start(self)

Data and non-method functions inherited from threading.Thread:
_Thread__initialized = 0

Methods inherited from threading._Verbose:
_note(self, format, *args)
 
class PingResponder(common.messagehandling.MessageHandler)
       A MessageHandler responding to ping messages
 
   Methods defined here:
__init__(self)
handleMessage(self, message)
 if the message is a ping then respond to the peer with a pong message

Data and non-method functions defined here:
__doc__ = ' A MessageHandler responding to ping messages\n '
__module__ = 'common.ping'
 
class PongHandler(common.messagehandling.MessageHandler)
       Sends a ping and waits for the pong
 
   Methods defined here:
__init__(self, peer, router)
 -peer is the peer to whom we send the ping
-time is the moment we sent the ping
handleMessage(self, message)

Data and non-method functions defined here:
__doc__ = ' Sends a ping and waits for the pong\n '
__module__ = 'common.ping'
 
Data
             __all__ = ['PingManager', 'PingResponder']
__author__ = 'Michel Rasschaert <mrasschaert@neocles.com>'
__date__ = '9 April 2003'
__file__ = r'e:\bothans\common\ping.pyc'
__license__ = 'This file is part of Bothans\n\n Bothans is fre...lace, Suite 330, Boston, MA 02111-1307 USA\n '
__name__ = 'common.ping'
__status__ = 'alpha'
__version__ = '0.1'
log = <logging.Logger instance at 0x007F6470>
 
Author
             Michel Rasschaert <mrasschaert@neocles.com>