diff options
author | Yury Selivanov <yury@magic.io> | 2016-11-07 20:36:03 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2016-11-07 20:36:03 (GMT) |
commit | abbbb88dc780f3cb976f581b0b963cee53f542f2 (patch) | |
tree | 0d697f99defb5c29c81e1c7f7402068fa56725c0 | |
parent | cb0416f2d00f9cef5d465572129fd0d2cbace0b6 (diff) | |
parent | 91aa5c12ea1efe9a7bba57d0d4d31a2a182d4fcd (diff) | |
download | cpython-abbbb88dc780f3cb976f581b0b963cee53f542f2.zip cpython-abbbb88dc780f3cb976f581b0b963cee53f542f2.tar.gz cpython-abbbb88dc780f3cb976f581b0b963cee53f542f2.tar.bz2 |
Merge 3.6 (issue #27392)
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 17 |
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 ---------------------- |