Skip to content

Commit 1538665

Browse files
committed
Issue #21700: Fix asyncio doc, add DatagramProtocol
1 parent 4762382 commit 1538665

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/library/asyncio-protocol.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,8 @@ Protocol classes
272272
Connection callbacks
273273
--------------------
274274

275-
These callbacks may be called on :class:`Protocol` and
276-
:class:`SubprocessProtocol` instances:
275+
These callbacks may be called on :class:`Protocol`, :class:`DatagramProtocol`
276+
and :class:`SubprocessProtocol` instances:
277277

278278
.. method:: BaseProtocol.connection_made(transport)
279279

@@ -291,10 +291,10 @@ These callbacks may be called on :class:`Protocol` and
291291
The latter means a regular EOF is received, or the connection was
292292
aborted or closed by this side of the connection.
293293

294-
:meth:`connection_made` and :meth:`connection_lost` are called exactly once
295-
per successful connection. All other callbacks will be called between those
296-
two methods, which allows for easier resource management in your protocol
297-
implementation.
294+
:meth:`~BaseProtocol.connection_made` and :meth:`~BaseProtocol.connection_lost`
295+
are called exactly once per successful connection. All other callbacks will be
296+
called between those two methods, which allows for easier resource management
297+
in your protocol implementation.
298298

299299
The following callbacks may be called only on :class:`SubprocessProtocol`
300300
instances:

0 commit comments

Comments
 (0)