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

Method send

Lib/asyncio/windows_events.py:539–547  ·  view source on GitHub ↗
(self, conn, buf, flags=0)

Source from the content-addressed store, hash-verified

537 return self._register(ov, conn, self.finish_socket_func)
538
539 def send(self, conn, buf, flags=0):
540 self._register_with_iocp(conn)
541 ov = _overlapped.Overlapped(NULL)
542 if isinstance(conn, socket.socket):
543 ov.WSASend(conn.fileno(), buf, flags)
544 else:
545 ov.WriteFile(conn.fileno(), buf)
546
547 return self._register(ov, conn, self.finish_socket_func)
548
549 def accept(self, listener):
550 self._register_with_iocp(listener)

Callers 12

_write_to_selfMethod · 0.45
sock_sendallMethod · 0.45
_sock_sendallMethod · 0.45
writeMethod · 0.45
_write_sendMethod · 0.45
sendtoMethod · 0.45
_sendto_readyMethod · 0.45
_loop_writingMethod · 0.45
_loop_writingMethod · 0.45
sock_sendallMethod · 0.45
_write_to_selfMethod · 0.45

Calls 3

_register_with_iocpMethod · 0.95
_registerMethod · 0.95
filenoMethod · 0.45

Tested by

no test coverage detected