Kaydet (Commit) 91aa5c12 authored tarafından Yury Selivanov's avatar Yury Selivanov

Merge 3.5 (issue #27392)

......@@ -462,6 +462,23 @@ Creating listening connections
Availability: UNIX.
.. coroutinemethod:: BaseEventLoop.connect_accepted_socket(protocol_factory, sock, \*, ssl=None)
Handle an accepted connection.
This is used by servers that accept connections outside of
asyncio but that use asyncio to handle them.
Parameters:
* *sock* is a preexisting socket object returned from an ``accept``
call.
* *ssl* can be set to an :class:`~ssl.SSLContext` to enable SSL over the
accepted connections.
This method is a :ref:`coroutine <coroutine>`. When completed, the
coroutine returns a ``(transport, protocol)`` pair.
Watch file descriptors
----------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment