[Twisted-Python] Proposal: changes to reactor.clientTCP

Glyph Lefkowitz glyph at twistedmatrix.com
Tue Jun 18 20:38:46 EDT 2002


From: Tommi Virtanen <tv at twistedmatrix.com>
Subject: Re: [Twisted-Python] Proposal: changes to reactor.clientTCP
Date: 18 Jun 2002 21:12:52 +0300

> Itamar Shtull-Trauring <twisted at itamarst.org> writes:
> 
> > Proposal:
> > reactor.clientTCP accepts a protocol factory instead of a protocol,
> > and only makes a protocol instance if connection was
> > made. Additionally, it accepts an additional argument,
> > failureCallback, which will get called with a status code
> > (CONNECTION_REFUSED, NO_SUCH_HOSTNAME) or something when the
> > connection fails. Protocol.connectionFailed goes bye-bye.
> 
> 	Please do not clobber the information given by the
>         kernel in errno. Translating errno to 2 different failures
>         is not nice.

It needs to be clobbered, at least in some sense, for portability.

Jython does not have errno and win32's support for it is very weak.

-- 
 |    <`'>    |  Glyph Lefkowitz: Traveling Sorcerer   |
 |   < _/ >   |  Lead Developer,  the Twisted project  |
 |  < ___/ >  |      http://www.twistedmatrix.com      |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20020618/beb4c756/attachment.pgp 


More information about the Twisted-Python mailing list