#4472 enhancement new
IStreamClientEndpoint / ClientFactory adapter
|Reported by:||Glyph||Owned by:|
Quoting from ticket 1442, comment 43,
There's too much code in Twisted right now that requires either
clientConnectionLost, and we need to make adopting endpoints as easy as humanly possible, so that protocol code can stop binding so tightly to the reactor. You shouldn't have to depend on getting rid of
ClientFactoryto get the new awesomeness of endpoints.
... and also ...
IStreamClientEndpoint.connectis formally correct; it implements the required interface. However, it is somewhat misleading and the code should probably emit a warning pointing at this legacy convenience class.