mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
asyncio doc: link create_connection() to open_connection() and create_server()
to start_server() Rename also the "Network functions" section to "Stream functions" and move it to the Stream section.
This commit is contained in:
parent
7235c05085
commit
c8ea81330c
2 changed files with 63 additions and 53 deletions
|
|
@ -213,6 +213,11 @@ Creating connections
|
|||
to bind the socket to locally. The *local_host* and *local_port*
|
||||
are looked up using getaddrinfo(), similarly to *host* and *port*.
|
||||
|
||||
.. seealso::
|
||||
|
||||
The :func:`open_connection` function can be used to get a pair of
|
||||
(:class:`StreamReader`, :class:`StreamWriter`) instead of a protocol.
|
||||
|
||||
|
||||
Creating listening connections
|
||||
------------------------------
|
||||
|
|
@ -251,6 +256,11 @@ Creating listening connections
|
|||
|
||||
This method returns a :ref:`coroutine object <coroutine>`.
|
||||
|
||||
.. seealso::
|
||||
|
||||
The function :func:`start_server` creates a (:class:`StreamReader`,
|
||||
:class:`StreamWriter`) pair and calls back a function with this pair.
|
||||
|
||||
.. method:: BaseEventLoop.create_datagram_endpoint(protocol_factory, local_addr=None, remote_addr=None, \*, family=0, proto=0, flags=0)
|
||||
|
||||
Create datagram connection.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue