[Twisted-Python] Setting socket options before connect

Itamar Turner-Trauring itamar at futurefoundries.com
Fri Jul 12 04:34:45 MDT 2013


Subclass twisted.internet.tcp.Client, override createInternetSocket() so it
calls setsockopt() on the socket after you've called base implementation to
create it. This breaks some abstraction boundaries, so it isn't great, but
very little code duplication is involved.

-- 
Itamar Turner-Trauring, Future Foundries LLC
http://futurefoundries.com/ — Twisted consulting, training and support.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20130712/5f90f522/attachment.html>


More information about the Twisted-Python mailing list