Commit 15386652 authored by Victor Stinner's avatar Victor Stinner

Issue #21700: Fix asyncio doc, add DatagramProtocol

parent 4762382d
...@@ -272,8 +272,8 @@ Protocol classes ...@@ -272,8 +272,8 @@ Protocol classes
Connection callbacks Connection callbacks
-------------------- --------------------
These callbacks may be called on :class:`Protocol` and These callbacks may be called on :class:`Protocol`, :class:`DatagramProtocol`
:class:`SubprocessProtocol` instances: and :class:`SubprocessProtocol` instances:
.. method:: BaseProtocol.connection_made(transport) .. method:: BaseProtocol.connection_made(transport)
...@@ -291,10 +291,10 @@ These callbacks may be called on :class:`Protocol` and ...@@ -291,10 +291,10 @@ These callbacks may be called on :class:`Protocol` and
The latter means a regular EOF is received, or the connection was The latter means a regular EOF is received, or the connection was
aborted or closed by this side of the connection. aborted or closed by this side of the connection.
:meth:`connection_made` and :meth:`connection_lost` are called exactly once :meth:`~BaseProtocol.connection_made` and :meth:`~BaseProtocol.connection_lost`
per successful connection. All other callbacks will be called between those are called exactly once per successful connection. All other callbacks will be
two methods, which allows for easier resource management in your protocol called between those two methods, which allows for easier resource management
implementation. in your protocol implementation.
The following callbacks may be called only on :class:`SubprocessProtocol` The following callbacks may be called only on :class:`SubprocessProtocol`
instances: instances:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment