summaryrefslogtreecommitdiff
path: root/Lib/asyncio/protocols.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-29 13:33:15 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-29 13:33:15 +0100
commitfffcecbbda20ef1fb1360dcf552f0fab1b332ac5 (patch)
tree04bb89870880a6f29103db9e44c8546a38c6a221 /Lib/asyncio/protocols.py
parent9369126163cecce5c39aa2689449b2a9ce1475af (diff)
downloadcpython-fffcecbbda20ef1fb1360dcf552f0fab1b332ac5.tar.gz
asyncio doc: document Protocol state machine
Diffstat (limited to 'Lib/asyncio/protocols.py')
-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 52fc25c2ee..80fcac9a82 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):