[Twisted-Python] Switch Protocols mid Connection

Glyph glyph at twistedmatrix.com
Mon Sep 17 23:41:48 MDT 2018



> On Sep 16, 2018, at 11:34 PM, Tristan Seligmann <mithrandi at mithrandi.net> wrote:
> 
> On Sun, 16 Sep 2018 at 16:02, Randall Smith <randall at tnr.cc> wrote:
>> and make 16+ calls to transfer a single file.  So I need to switch to a
>> more appropriate (not yet determined) protocol for the transfer, and
>> then back to AMP.  AMP provides a protocol switch command, which is
>> great, but then I'd need to switch back to AMP and I have no idea what
>> approach to take here.  It  doesn't help that I don't have a file
>> transfer protocol selected.
> 
> You might be able to get away with
> http://bazaar.launchpad.net/~glyph/%2Bjunk/amphacks/annotate/head%3A/python/amphacks/mediumbox.py <http://bazaar.launchpad.net/~glyph/+junk/amphacks/annotate/head:/python/amphacks/mediumbox.py>
You will also probably be interested in https://twistedmatrix.com/trac/ticket/9488 <https://twistedmatrix.com/trac/ticket/9488> .

-glyph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20180917/642d9a10/attachment-0002.html>


More information about the Twisted-Python mailing list