[Twisted-Python] Re: Example for a new protocol over TCP

Jean-Paul Calderone exarkun at divmod.com
Wed Jun 25 14:34:08 EDT 2008


On Wed, 25 Jun 2008 20:28:36 +0200, Matthieu Brucher <matthieu.brucher at gmail.com> wrote:
>Hi again,
>
>Does someone have a pointer ? It should be enough for me to start with ;)
>I thought about this:
>- creation of the client

Documentation for creating a client is here:

  http://twistedmatrix.com/projects/core/documentation/howto/clients.html

>- initialization of the messenger
>- when building the messenger, I create a DeferredList (or something like that)
>- when sending a message, I call a send() method that will either add
>the message to the DeferredList or directly send() is the DeferredList
>was processed.
>- when the initialization is complete, the DeferredList is processed.

These parts, I don't understand.

Jean-Paul




More information about the Twisted-Python mailing list