[Twisted-Python] Why don't Connectors use deferreds?
Itamar Shtull-Trauring
itamar at itamarst.org
Thu Sep 9 08:55:49 MDT 2004
On Thu, 2004-09-09 at 01:12, Mike C. Fletcher wrote:
> Maybe I'm just missing something about the "proper" way to do this in
> Twisted, if so, feel free to point out the one-true-way,
There's a utility class for this in twisted.internet.protocol:
deferredOfProtocolInstance =
ClientCreator(MyProtocol).connectTCP("localhost", 1234)
If this matches your needs I suggest adding an issue to
twistedmatrix.com/bugs/ about adding this to the client howto and assign
to hypatia or me.
--
Itamar Shtull-Trauring http://itamarst.org
More information about the Twisted-Python
mailing list