summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-29 12:33:15 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-29 12:33:15 (GMT)
commit54a231d5397bda24257f253eb1aaabf1b741a0b5 (patch)
tree028602e0d21841373ec0de59a5429790d12ef3a1 /Lib
parent47bbea712415e79ee224d21e518470ec70477d41 (diff)
downloadcpython-54a231d5397bda24257f253eb1aaabf1b741a0b5.zip
cpython-54a231d5397bda24257f253eb1aaabf1b741a0b5.tar.gz
cpython-54a231d5397bda24257f253eb1aaabf1b741a0b5.tar.bz2
asyncio doc: document Protocol state machine
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/protocols.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/asyncio/protocols.py b/Lib/asyncio/protocols.py
index 52fc25c..80fcac9 100644
--- a/Lib/asyncio/protocols.py
+++ b/Lib/asyncio/protocols.py
@@ -78,6 +78,11 @@ class Protocol(BaseProtocol):
State machine of calls:
start -> CM [-> DR*] [-> ER?] -> CL -> end
+
+ * CM: connection_made()
+ * DR: data_received()
+ * ER: eof_received()
+ * CL: connection_lost()
"""
def data_received(self, data):