diff options
Diffstat (limited to 'Doc/library/asyncio-stream.rst')
-rw-r--r-- | Doc/library/asyncio-stream.rst | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/library/asyncio-stream.rst b/Doc/library/asyncio-stream.rst index 08fe071..0ab08e1 100644 --- a/Doc/library/asyncio-stream.rst +++ b/Doc/library/asyncio-stream.rst @@ -18,14 +18,14 @@ Stream functions .. coroutinefunction:: open_connection(host=None, port=None, \*, loop=None, limit=None, \*\*kwds) - A wrapper for :meth:`~BaseEventLoop.create_connection()` returning a (reader, + A wrapper for :meth:`~AbstractEventLoop.create_connection()` returning a (reader, writer) pair. The reader returned is a :class:`StreamReader` instance; the writer is a :class:`StreamWriter` instance. The arguments are all the usual arguments to - :meth:`BaseEventLoop.create_connection` except *protocol_factory*; most + :meth:`AbstractEventLoop.create_connection` except *protocol_factory*; most common are positional host and port, with various optional keyword arguments following. @@ -38,7 +38,7 @@ Stream functions .. coroutinefunction:: start_server(client_connected_cb, host=None, port=None, \*, loop=None, limit=None, \*\*kwds) Start a socket server, with a callback for each client connected. The return - value is the same as :meth:`~BaseEventLoop.create_server()`. + value is the same as :meth:`~AbstractEventLoop.create_server()`. The *client_connected_cb* parameter is called with two parameters: *client_reader*, *client_writer*. *client_reader* is a @@ -49,7 +49,7 @@ Stream functions converted into a :class:`Task`. The rest of the arguments are all the usual arguments to - :meth:`~BaseEventLoop.create_server()` except *protocol_factory*; most + :meth:`~AbstractEventLoop.create_server()` except *protocol_factory*; most common are positional *host* and *port*, with various optional keyword arguments following. @@ -61,7 +61,7 @@ Stream functions .. coroutinefunction:: open_unix_connection(path=None, \*, loop=None, limit=None, **kwds) - A wrapper for :meth:`~BaseEventLoop.create_unix_connection()` returning + A wrapper for :meth:`~AbstractEventLoop.create_unix_connection()` returning a (reader, writer) pair. See :func:`open_connection` for information about return value and other @@ -321,7 +321,7 @@ TCP echo client using the :func:`asyncio.open_connection` function:: .. seealso:: The :ref:`TCP echo client protocol <asyncio-tcp-echo-client-protocol>` - example uses the :meth:`BaseEventLoop.create_connection` method. + example uses the :meth:`AbstractEventLoop.create_connection` method. .. _asyncio-tcp-echo-server-streams: @@ -366,7 +366,7 @@ TCP echo server using the :func:`asyncio.start_server` function:: .. seealso:: The :ref:`TCP echo server protocol <asyncio-tcp-echo-server-protocol>` - example uses the :meth:`BaseEventLoop.create_server` method. + example uses the :meth:`AbstractEventLoop.create_server` method. Get HTTP headers @@ -458,10 +458,10 @@ Coroutine waiting until a socket receives data using the The :ref:`register an open socket to wait for data using a protocol <asyncio-register-socket>` example uses a low-level protocol created by the - :meth:`BaseEventLoop.create_connection` method. + :meth:`AbstractEventLoop.create_connection` method. The :ref:`watch a file descriptor for read events <asyncio-watch-read-event>` example uses the low-level - :meth:`BaseEventLoop.add_reader` method to register the file descriptor of a + :meth:`AbstractEventLoop.add_reader` method to register the file descriptor of a socket. |