Glyph Lefkowitz a écrit :
> On Nov 24, 2009, at 4:26 PM, Olivier Parisy wrote:
>
>   Currently, the right way to do this is to do as you suggest, and 
> have two DatagramProtocol instances, and a third which switches 
> between them.
>   
OK, that seems like a reasonable pattern. Thanks for the confirmation.

> In the future, however, it would be reasonable and useful to have an 
> explicit "switch protocol" method, which would tear down one 
> protocol/transport relationship and set up another.  If you would like 
> to open a ticket and contribute a patch to do this, that would be 
> great :) .
>   
I am not sure I would know where to start :-) But I'll give a look to 
DatagramProtocol source code.

Regards,
Olivier.




_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to