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

Tommi Virtanen tv at twistedmatrix.com
Tue Jun 18 14:12:52 EDT 2002

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.

double a,b=4,c;main(){for(;++a<2e6;c-=(b=-b)/a++);printf("%f\n",c);}

More information about the Twisted-Python mailing list