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

Method sock_connect

Lib/asyncio/proactor_events.py:725–728  ·  view source on GitHub ↗
(self, sock, address)

Source from the content-addressed store, hash-verified

723 return await self._proactor.sendto(sock, data, 0, address)
724
725 async def sock_connect(self, sock, address):
726 if self._debug and sock.gettimeout() != 0:
727 raise ValueError("the socket must be non-blocking")
728 return await self._proactor.connect(sock, address)
729
730 async def sock_accept(self, sock):
731 return await self._proactor.accept(sock)

Callers

nothing calls this directly

Calls 2

gettimeoutMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected