Adi Roiban
2016-08-11 14:21:56 UTC
Hi,
Looking at the code in trunk [1] I can see that
t.internet.protocol.Protocol will update the 'connected' attribute
upon makeConnection but will not update it on connectionLost
Is this the intended design?
Is this design documented somewhere ?
I have check the narrative docs [2] and api-docs[3] but this attribute
is not documented.
What is the purpose of t.internet.protocol.Protocol.connected ?
Thanks!
[1] https://github.com/twisted/twisted/blob/trunk/twisted/internet/protocol.py#L471
[2] http://twistedmatrix.com/documents/current/core/howto/servers.html#protocols
[3]
Looking at the code in trunk [1] I can see that
t.internet.protocol.Protocol will update the 'connected' attribute
upon makeConnection but will not update it on connectionLost
Is this the intended design?
Is this design documented somewhere ?
I have check the narrative docs [2] and api-docs[3] but this attribute
is not documented.
What is the purpose of t.internet.protocol.Protocol.connected ?
Thanks!
[1] https://github.com/twisted/twisted/blob/trunk/twisted/internet/protocol.py#L471
[2] http://twistedmatrix.com/documents/current/core/howto/servers.html#protocols
[3]
--
Adi Roiban
Adi Roiban