bpo-32410: Implement loop.sock_sendfile() (#4976)

This commit is contained in:
Andrew Svetlov 2018-01-16 19:59:34 +02:00 committed by GitHub
parent c495e799ed
commit 6b5a27975a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 609 additions and 0 deletions

View file

@ -464,6 +464,10 @@ class AbstractEventLoop:
async def sock_accept(self, sock):
raise NotImplementedError
async def sock_sendfile(self, sock, file, offset=0, count=None,
*, fallback=None):
raise NotImplementedError
# Signal handling.
def add_signal_handler(self, sig, callback, *args):