[Twisted-Python] notifyOnDisconnect

Ruslan Spivak alienoid at is.lg.ua
Fri Sep 5 03:20:20 MDT 2003


Hello.

I have server and a lot of clients, that connects to server and pass 
their pb.Referenceable. Every 2 minutes server calls clients' remote 
method. I store clients' references on server in a list of dictionaries 
- [{'remoteRef' : ref, 'ip' : '192.168.1.2', 'mac' : '...'}, ....] I 
call notifyOnDisconnect on clients' remoteRef. In callback i need to 
close client's firewall. How can i pass 'ip', 'mac' from dictionary to 
callback if notifyOnDisconnect passes only one parameter(this instance) 
to callback method. Help, please

Thanks in advance
Best regards,
Ruslan





More information about the Twisted-Python mailing list