MCPcopy Create free account
hub / github.com/EasyIME/PIME / resolve

Method resolve

python/python3/tornado/netutil.py:351–375  ·  view source on GitHub ↗

Resolves an address. The ``host`` argument is a string which may be a hostname or a literal IP address. Returns a `.Future` whose result is a list of (family, address) pairs, where address is a tuple suitable to pass to `socket.connect <socket.socket.connect

(
        self, host: str, port: int, family: socket.AddressFamily = socket.AF_UNSPEC
    )

Source from the content-addressed store, hash-verified

349 return DefaultLoopResolver
350
351 def resolve(
352 self, host: str, port: int, family: socket.AddressFamily = socket.AF_UNSPEC
353 ) -> Awaitable[List[Tuple[int, Any]]]:
354 """Resolves an address.
355
356 The ``host`` argument is a string which may be a hostname or a
357 literal IP address.
358
359 Returns a `.Future` whose result is a list of (family,
360 address) pairs, where address is a tuple suitable to pass to
361 `socket.connect <socket.socket.connect>` (i.e. a ``(host,
362 port)`` pair for IPv4; additional fields may be present for
363 IPv6). If a ``callback`` is passed, it will be run with the
364 result as an argument when it is complete.
365
366 :raises IOError: if the address cannot be resolved.
367
368 .. versionchanged:: 4.4
369 Standardized all implementations to raise `IOError`.
370
371 .. versionchanged:: 6.0 The ``callback`` argument was removed.
372 Use the returned awaitable object instead.
373
374 """
375 raise NotImplementedError()
376
377 def close(self) -> None:
378 """Closes the `Resolver`, freeing any resources used.

Callers 11

resolveMethod · 0.45
connectMethod · 0.45
dFunction · 0.45
pFunction · 0.45
sweetalert2.min.jsFile · 0.45
VtFunction · 0.45
NtFunction · 0.45
UtFunction · 0.45
jquery-ui.min.jsFile · 0.45
jquery-ui.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected