Re: [Twisted-Python] AMP Argument.toBox's proto argument is a locator, not the proto?

2013-10-03 Thread Glyph
On Oct 1, 2013, at 1:13 AM, Laurens Van Houtven _...@lvh.io wrote: On Tue, Oct 1, 2013 at 12:59 AM, Glyph gl...@twistedmatrix.com wrote: Most of the code I can think of that wants to use that really wants the transport rather than the protocol, Yes, but having the protocol would also

Re: [Twisted-Python] AMP Argument.toBox's proto argument is a locator, not the proto?

2013-10-01 Thread Laurens Van Houtven
On Tue, Oct 1, 2013 at 12:59 AM, Glyph gl...@twistedmatrix.com wrote: Most of the code I can think of that wants to use that really wants the * transport* rather than the protocol, Yes, but having the protocol would also immediately give you access to the transport, and, from what I

[Twisted-Python] AMP Argument.toBox's proto argument is a locator, not the proto?

2013-09-30 Thread Laurens Van Houtven
Hi everyone, I think I've hit one of those cases where AMP really seems to want everything (locator, receiver, sender) to be an instance of t.p.amp.AMP :-( I've written some code that tries to multiplex stream transports over AMP:

Re: [Twisted-Python] AMP Argument.toBox's proto argument is a locator, not the proto?

2013-09-30 Thread Glyph
On Sep 30, 2013, at 2:45 AM, Laurens Van Houtven _...@lvh.io wrote: What am I doing wrong? Is this a bug? I think it's pretty clearly a bug. Calling the argument proto in the first place indicates the nature of the confusion. There are parts of the flow here from bytes to method execution

Re: [Twisted-Python] AMP Argument.toBox's proto argument is a locator, not the proto?

2013-09-30 Thread Glyph
On Sep 30, 2013, at 12:09 PM, Laurens Van Houtven _...@lvh.io wrote: Hi Glyph, Thanks for your response! On Mon, Sep 30, 2013 at 8:41 PM, Glyph gl...@twistedmatrix.com wrote: On Sep 30, 2013, at 2:45 AM, Laurens Van Houtven _...@lvh.io wrote: What am I doing wrong? Is this a bug? I