[Twisted-Python] How to determine whether transport.write() succeed?

Glyph glyph at twistedmatrix.com
Sun Mar 31 05:49:20 EDT 2013

On Mar 31, 2013, at 1:50 AM, Todong Ma <gbstack08 at gmail.com> wrote:

> Hi, everyone
> How could I dertermine ITransport.write() succeed?
> In windows socket API, I can check send()'s return value to dertermine whether send() succeed.
> Any suggestion is appreciated.

ITransport.write() always succeeds.  It may or may not call socket.send immediately, so it cannot tell you if the socket.send() succeeded or not.

What are you trying to do?


More information about the Twisted-Python mailing list