Changes between Version 29 and Version 30 of FrequentlyAskedQuestions


Ignore:
Timestamp:
04/13/09 14:56:24 (13 years ago)
Author:
radix
Comment:

grammar

Legend:

Unmodified
Added
Removed
Modified
  • FrequentlyAskedQuestions

    v29 v30  
    8787This seems like it's a Twisted question, but actually it's a Python question.  Each `Protocol` object represents one connection; you can call its `transport.write` to write some data to it.  These are regular Python objects; you can put them into lists, dictionaries, or whatever other data structure is appropriate to your application.
    8888
    89 As a simple example, add a list to your factory, and in your protocol's `connectionMade` and `connectionLost`, add it and remove it to that list.  Here's the Python code:
     89As a simple example, add a list to your factory, and in your protocol's `connectionMade` and `connectionLost`, add it to and remove it from that list.  Here's the Python code:
    9090
    9191{{{