# HG changeset patch
# User Jim Fulton
# Date 1468505438 14400
# Thu Jul 14 10:10:38 2016 -0400
# Branch j1m-connect_accepted_socket-doc.patch
# Node ID 40ac34d3c07c0422a05b486e5ad260e5177648ba
# Parent 89821243621b2ebf7aa38143e813c2cc76739fff
documentation for connect_accepted_socket
diff -r 89821243621b -r 40ac34d3c07c Doc/library/asyncio-eventloop.rst
--- a/Doc/library/asyncio-eventloop.rst Thu Jul 14 07:45:24 2016 +0300
+++ b/Doc/library/asyncio-eventloop.rst Thu Jul 14 10:10:38 2016 -0400
@@ -449,6 +449,23 @@
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 `. When completed, the
+ coroutine returns a ``(transport, protocol)`` pair.
Watch file descriptors
----------------------