PyDocs

Nav

Networking and Interprocess Communication

BaseProtocol

asyncio

class (source) not WASI
Common base class for protocol interfaces.

Usually user implements protocols that derived from BaseProtocol
like Protocol or ProcessProtocol.

The only case when BaseProtocol should be implemented directly is
write-only transport like write pipe
Members of BaseProtocol

c

connection_lost
Called when the connection is lost or closed.
connection_made
Called when a connection is made.

p

pause_writing
Called when the transport's buffer goes over the high-water mark.

r

resume_writing
Called when the transport's buffer drains below the low-water mark.
0 Examples
No examples for asyncio/BaseProtocol.
See Also
No see-alsos for asyncio/BaseProtocol
0 Notes
No notes for BaseProtocol