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

Method _finish_recvfrom

Lib/asyncio/windows_events.py:472–481  ·  view source on GitHub ↗
(cls, trans, key, ov, *, empty_result)

Source from the content-addressed store, hash-verified

470
471 @classmethod
472 def _finish_recvfrom(cls, trans, key, ov, *, empty_result):
473 try:
474 return cls.finish_socket_func(trans, key, ov)
475 except OSError as exc:
476 # WSARecvFrom will report ERROR_PORT_UNREACHABLE when the same
477 # socket is used to send to an address that is not listening.
478 if exc.winerror == _overlapped.ERROR_PORT_UNREACHABLE:
479 return empty_result, None
480 else:
481 raise
482
483 def recv(self, conn, nbytes, flags=0):
484 self._register_with_iocp(conn)

Callers

nothing calls this directly

Calls 1

finish_socket_funcMethod · 0.80

Tested by

no test coverage detected