Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3b3a141a
Commit
3b3a141a
authored
Nov 07, 2016
by
Yury Selivanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27392: Document loop.connect_accepted_socket()
Patch by Jim Fulton.
parent
2ebd6fee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
Doc/library/asyncio-eventloop.rst
Doc/library/asyncio-eventloop.rst
+17
-0
No files found.
Doc/library/asyncio-eventloop.rst
View file @
3b3a141a
...
...
@@ -461,6 +461,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
----------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment