[Twisted-Python] The right way to broadcast to your TCP/IP clients?

Tim Stebbing tim.stebbing at nunatak.com.au
Mon Mar 29 00:04:41 EST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


| Here's what I did for my simple prototype that takes any message
| received from a client and sends it to all clients (including the
| sender):

alternativly, you could use PB and share some sort of 'talker' object
between all connections. this would allow a client to simply do:

talker.callRemote("write", "hello world")

and have everyone else recieve it. I get the feeling the pb/cred combo
would be ideal for what your trying to do. Check it out:
http://www.twistedmatrix.com/documents/current/howto/pb-intro
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAZ65oQAUUJNWKvroRAgiCAKCFBpqPOaMVROPos2a6+kGP8Kf+EwCeNyTA
s3O/hBbtmSdJtONrM3c88eQ=
=BXEp
-----END PGP SIGNATURE-----





More information about the Twisted-Python mailing list