[Twisted-Python] Implementing a new stream transport
Laurens Van Houtven
_ at lvh.cc
Tue Apr 9 06:29:26 EDT 2013
On Tue, Apr 9, 2013 at 5:58 AM, Phil Budne <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.
Could you paste some code that you tried illustrating the problem? (You
mentioned something involving Sites and Protocols, but a Site is a
ServerFactory.)
--
cheers
lvh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20130409/3f780ffa/attachment.htm
More information about the Twisted-Python
mailing list