summaryrefslogtreecommitdiff
path: root/Doc/library/asyncio-protocol.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-06-10 09:19:26 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-06-10 09:19:26 +0200
commit15386652bfc57721d52e00e43a0e2ed66724995d (patch)
tree1e7537f25646d2bb8cad42c663a1a926e7cd28b6 /Doc/library/asyncio-protocol.rst
parent4762382d6346abdef810cdf0a6101cbc1ec5952e (diff)
downloadcpython-git-15386652bfc57721d52e00e43a0e2ed66724995d.tar.gz
Issue #21700: Fix asyncio doc, add DatagramProtocol
Diffstat (limited to 'Doc/library/asyncio-protocol.rst')
-rw-r--r--Doc/library/asyncio-protocol.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/asyncio-protocol.rst b/Doc/library/asyncio-protocol.rst
index 58c94aebf6..9c52b384c2 100644
--- a/Doc/library/asyncio-protocol.rst
+++ b/Doc/library/asyncio-protocol.rst
@@ -272,8 +272,8 @@ Protocol classes
Connection callbacks
--------------------
-These callbacks may be called on :class:`Protocol` and
-:class:`SubprocessProtocol` instances:
+These callbacks may be called on :class:`Protocol`, :class:`DatagramProtocol`
+and :class:`SubprocessProtocol` instances:
.. method:: BaseProtocol.connection_made(transport)
@@ -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
aborted or closed by this side of the connection.
-:meth:`connection_made` and :meth:`connection_lost` are called exactly once
-per successful connection. All other callbacks will be called between those
-two methods, which allows for easier resource management in your protocol
-implementation.
+:meth:`~BaseProtocol.connection_made` and :meth:`~BaseProtocol.connection_lost`
+are called exactly once per successful connection. All other callbacks will be
+called between those two methods, which allows for easier resource management
+in your protocol implementation.
The following callbacks may be called only on :class:`SubprocessProtocol`
instances: