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:
Victor Stinner 2014-01-23 11:02:09 +01:00
parent 7235c05085
commit c8ea81330c
2 changed files with 63 additions and 53 deletions

View file

@ -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.