mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
asyncio doc: document Protocol state machine
This commit is contained in:
parent
47bbea7124
commit
54a231d539
2 changed files with 13 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue