MCPcopy Index your code
hub / github.com/python/cpython / sendfile

Method sendfile

Lib/asyncio/events.py:423–429  ·  view source on GitHub ↗

Send a file through a transport. Return an amount of sent bytes.

(self, transport, file, offset=0, count=None,
                       *, fallback=True)

Source from the content-addressed store, hash-verified

421 raise NotImplementedError
422
423 async def sendfile(self, transport, file, offset=0, count=None,
424 *, fallback=True):
425 """Send a file through a transport.
426
427 Return an amount of sent bytes.
428 """
429 raise NotImplementedError
430
431 async def start_tls(self, transport, protocol, sslcontext, *,
432 server_side=False,

Callers 3

innerMethod · 0.95
_sock_sendfile_nativeMethod · 0.45

Calls

no outgoing calls

Tested by 1

innerMethod · 0.76