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

Method sendto

Lib/asyncio/windows_events.py:531–537  ·  view source on GitHub ↗
(self, conn, buf, flags=0, addr=None)

Source from the content-addressed store, hash-verified

529 empty_result=0))
530
531 def sendto(self, conn, buf, flags=0, addr=None):
532 self._register_with_iocp(conn)
533 ov = _overlapped.Overlapped(NULL)
534
535 ov.WSASendTo(conn.fileno(), buf, flags, addr)
536
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)

Callers 15

sendMethod · 0.45
emitMethod · 0.45
testSendtoErrorsMethod · 0.45
_testSendAndRecvMethod · 0.45
_testPeekMethod · 0.45
_testSendAndRecvMultiMethod · 0.45
_testSelectMethod · 0.45
_testSendtoAndRecvMethod · 0.45
_testRecvFromMethod · 0.45
_testRecvFromNegativeMethod · 0.45
_testSendtoAndRecvMethod · 0.45
_testRecvFromMethod · 0.45

Calls 3

_register_with_iocpMethod · 0.95
_registerMethod · 0.95
filenoMethod · 0.45

Tested by 15

testSendtoErrorsMethod · 0.36
_testSendAndRecvMethod · 0.36
_testPeekMethod · 0.36
_testSendAndRecvMultiMethod · 0.36
_testSelectMethod · 0.36
_testSendtoAndRecvMethod · 0.36
_testRecvFromMethod · 0.36
_testRecvFromNegativeMethod · 0.36
_testSendtoAndRecvMethod · 0.36
_testRecvFromMethod · 0.36
_testRecvFromNegativeMethod · 0.36
sendToServerMethod · 0.36