[Twisted-Python] ClientFactory design

Colin Dunklau colin.dunklau at gmail.com
Mon Nov 30 06:05:42 MST 2020



> On 30. Nov 2020, at 05:48, Peter Westlake <peter.westlake at pobox.com> wrote:
> 
> 
> I'm studying an SSH client implementation using Conch, and was surprised to see that the ClientFactory subclass had a connect() method which calls connectTCP. This isn't really a problem - the code works - but it seems like an odd place to do the connection. Am I right to be surprised?
> 
> Peter.

Hi Peter,

ClientFactory doesn’t define a connect method, so that’s probably just a custom convenience method added by the author, rather than something involved in the twisted interface. As for if it’s weird or not, that’s hard to say without seeing the full implementation.

- Colin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20201130/dfc0ee05/attachment.htm>


More information about the Twisted-Python mailing list