summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2016-11-07 20:36:03 (GMT)
committerYury Selivanov <yury@magic.io>2016-11-07 20:36:03 (GMT)
commitabbbb88dc780f3cb976f581b0b963cee53f542f2 (patch)
tree0d697f99defb5c29c81e1c7f7402068fa56725c0
parentcb0416f2d00f9cef5d465572129fd0d2cbace0b6 (diff)
parent91aa5c12ea1efe9a7bba57d0d4d31a2a182d4fcd (diff)
downloadcpython-abbbb88dc780f3cb976f581b0b963cee53f542f2.zip
cpython-abbbb88dc780f3cb976f581b0b963cee53f542f2.tar.gz
cpython-abbbb88dc780f3cb976f581b0b963cee53f542f2.tar.bz2
Merge 3.6 (issue #27392)
-rw-r--r--Doc/library/asyncio-eventloop.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
index ab5bc31..bb602c6 100644
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -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
----------------------