
Nov. 30, 2020
1:38 p.m.
On Mon, Nov 30, 2020 at 6:48 AM Peter Westlake <peter.westlake@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?
Putting transport setup on the factory unnecessarily couples protocol and transport logic. More flexibility is provided by keeping these concerns independent.
Peter. _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python