From 54a231d5397bda24257f253eb1aaabf1b741a0b5 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 29 Jan 2015 13:33:15 +0100 Subject: asyncio doc: document Protocol state machine --- Lib/asyncio/protocols.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Lib/asyncio/protocols.py') diff --git a/Lib/asyncio/protocols.py b/Lib/asyncio/protocols.py index 52fc25c2ee9..80fcac9a82d 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): -- cgit v1.2.3