[Twisted-Python] Implementing a new stream transport
Itamar Turner-Trauring
itamar at itamarst.org
Tue Apr 9 07:49:06 EDT 2013
On 04/09/2013 06:29 AM, Laurens Van Houtven wrote:
> On Tue, Apr 9, 2013 at 5:58 AM, Phil Budne <phil at ultimate.com
> <mailto:phil at ultimate.com>> wrote:
>
> Yes, and I implemented the ITransport methods.
>
> The first bump was that I was missing registerProducer and
> unregisterProducer, which are defined as part of IConsumer. But after
> that I had another problem (which I can't reproduce at this moment).
>
>
> Huh. If the interface you're passing it to claims it needs an
> ITransport, and an ITransport didn't work, that's a bug. The
> consumer/producer interfaces are somewhat related to transports, but
> definitely distinct.
I'm pretty sure the twisted.web server code uses the consumer API on the
transport.
More information about the Twisted-Python
mailing list