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
)
| 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. |
no outgoing calls
no test coverage detected