zut.net.check_host_port

zut.net.check_host_port(hostport: tuple[str, int] | list[tuple[str, int]], *, timeout: float | None = None) tuple[str, int] | None

Check whether at least one of the given host and port is open.

If yes, return the first opened (host, port). Otherwise return None.