[Twisted-Python] Analog to asyncore.dispatcher.handle_write()?

Hi, I'm new to twisted so this may be a simple question. I want to write a twisted.internet.protocol.Protocol implementation which doesn't write too far ahead of the socket it's writing into. How do I get a notification when the underlying socket is ready to write more data? Any info would be much appreciated. -- Darrell

On Thu, 2005-12-22 at 19:26 +0000, dkarbott@comcast.net wrote:
transports have a registerProducer(consumer, streaming) method, as they are consumers - see twisted.internet.interface.IConsumer and IProducer. You would implement a producer (the protocol instance, for example) with the resumeProducing, pauseProducing, stopProducing methods which would get called depending on socket state.

On Thu, 2005-12-22 at 19:26 +0000, dkarbott@comcast.net wrote:
transports have a registerProducer(consumer, streaming) method, as they are consumers - see twisted.internet.interface.IConsumer and IProducer. You would implement a producer (the protocol instance, for example) with the resumeProducing, pauseProducing, stopProducing methods which would get called depending on socket state.
participants (2)
-
dkarbott@comcast.net
-
Itamar Shtull-Trauring