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

Matthieu Brucher matthieu.brucher at gmail.com
Wed Jun 25 14:28:36 EDT 2008


Hi again,

Does someone have a pointer ? It should be enough for me to start with ;)
I thought about this:
- creation of the client
- 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.

Is this realistic?

Matthieu

2008/6/18 Matthieu Brucher <matthieu.brucher at gmail.com>:
> Hi,
>
> I'm new to twisted and I'm trying to implement a set of protocols
> (already available in Java, JXSE). I lamost know how I will set up the
> different services that will communicate through the reactor, but I'm
> starting from the beginning, so here is my real question.
> How can I set up a factory (using a TCP protocol) so that when I want
> to send a message to someone, it connects though TCP to the other
> computer, they exchange a welcome message, and only then the message
> is sent though the TCP protocol ? Of course, it is not as simple as
> this, but if someone has a pointer, I will be able to fill the missing
> pieces in my design ;)
>
> Thanks,
> Matthieu
> --
> French PhD student
> Website : http://matthieu-brucher.developpez.com/
> Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
> LinkedIn : http://www.linkedin.com/in/matthieubrucher
>



-- 
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher




More information about the Twisted-Python mailing list