[Twisted-Python] connection identification string
Christopher Armstrong
radix at twistedmatrix.com
Thu Feb 28 06:48:55 MST 2008
On Thu, Feb 28, 2008 at 6:58 AM, coder_gus <coder_gus at lavabit.com> wrote:
> Is there a way to identify a connection by a number/string for later use?
> It could be easily implemented or given the async character of twisted
> probably is not worth it ... but just as a hint? Is there?
Protocol objects can be put inside of Python data structures like
dicts and lists. For example, it may be useful for an IRC server to
have a mapping of {username: protocol instance}.
--
Christopher Armstrong
International Man of Twistery
http://radix.twistedmatrix.com/
http://twistedmatrix.com/
http://canonical.com/
More information about the Twisted-Python
mailing list