[Twisted-Python] twisted.internet.protocol.Protocol.connected flag purpose

Adi Roiban adi at roiban.ro
Thu Aug 11 08:21:56 MDT 2016


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]
-- 
Adi Roiban



More information about the Twisted-Python mailing list