summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-29 14:14:07 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-29 14:14:07 +0100
commit8174c88d63d99764b803feeb4852db6c3be82994 (patch)
treec7202afb5278d34b4936571fe1372c23bc7356fe
parent801fb32b5fe761eda5152b332f6fd50d76bfde25 (diff)
downloadtrollius-8174c88d63d99764b803feeb4852db6c3be82994.tar.gz
Document Protocol state machine
-rw-r--r--asyncio/protocols.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/asyncio/protocols.py b/asyncio/protocols.py
index 52fc25c..80fcac9 100644
--- a/asyncio/protocols.py
+++ b/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):