[Twisted-Python] PB release connection
Uwe C. Schroeder
uwe at oss4u.com
Sat Sep 25 14:31:12 MDT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
after browsing the docs,api and mailinglist I couldn't find what I'm looking
for. I'm using a simple pb server with a pb.Root object (don't need
authentication). What I want to do is release the connection from the
server-side. Server code looks like:
class MyPerspective(pb.Root):
....
....
main:
reactor.listenTCP(port,pb.PBServerFactory(MyPerspective(self)))
so far so good. MyPerspective receives all the remote_ calls. Now I'd like to
be able to get rid of a specific client (which holds a remote-reference to
MyPerspective). With the old pb api there was a way to do call
perspective.broker.transport.loseConnection(), which I was using on the client
side to end the connection.
I can't see anything like this with the new API that would allow me to
initiate the "kick off" from the server side.
Can this be done? What would be the propper way to release a connection from
the server side?
Thanks for any enlightenment.
Uwe
- --
Open Source Solutions 4U, LLC 2570 Fleetwood Drive
Phone: +1 650 872 2425 San Bruno, CA 94066
Cell: +1 650 302 2405 United States
Fax: +1 650 872 2417
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFBVdWQjqGXBvRToM4RAuzVAJ4jeJHgNGGVwP3pGWh8wWBo+pkXKwCfbJsk
BZN9uUIFMkUb9w7deq0iwDE=
=b1g5
-----END PGP SIGNATURE-----
More information about the Twisted-Python
mailing list