[Twisted-Python] Keeping a list of connected PB clients
yqiang at gmail.com
Sun Nov 19 19:00:13 EST 2006
I am trying to figure out how to keep an continuously updated list of
connected clients to a PB server.
I have had success in figuring out how to add clients to my list when they
connect, but I am not sure what methods get called when a client
This is what I have so far:
from twisted.spread import pb
def __init__(self, root):
self.clients = 
def clientConnectionMade(self, broker):
"""Keeps a 3-tuple of connected clients.
tuple - the broker transport
tuple - the clients ip
tuple - the clients port
There does not seem to be a corresponding clientConnectionLost method for
the Factory class. Any suggestions would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-Python