From 8174c88d63d99764b803feeb4852db6c3be82994 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 29 Jan 2015 14:14:07 +0100 Subject: Document Protocol state machine --- asyncio/protocols.py | 5 +++++ 1 file changed, 5 insertions(+) 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): -- cgit v1.2.1