[Twisted-Python] Transfering a transport between DatagramProtocols
olivier.parisy at free.fr
Wed Nov 25 16:26:45 EST 2009
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.
More information about the Twisted-Python