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

Method getaddrinfo

Lib/asyncio/base_events.py:934–942  ·  view source on GitHub ↗
(self, host, port, *,
                          family=0, type=0, proto=0, flags=0)

Source from the content-addressed store, hash-verified

932 return addrinfo
933
934 async def getaddrinfo(self, host, port, *,
935 family=0, type=0, proto=0, flags=0):
936 if self._debug:
937 getaddr_func = self._getaddrinfo_debug
938 else:
939 getaddr_func = socket.getaddrinfo
940
941 return await self.run_in_executor(
942 None, getaddr_func, host, port, family, type, proto, flags)
943
944 async def getnameinfo(self, sockaddr, flags=0):
945 return await self.run_in_executor(

Callers 2

_getaddrinfo_debugMethod · 0.45
_ensure_resolvedMethod · 0.45

Calls 1

run_in_executorMethod · 0.95

Tested by

no test coverage detected