zut.net.check_port
- zut.net.check_port(hostport: str | tuple[str, int] | list[str | tuple[str, int]], port: int | None = None, *, 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 open (host, port). Otherwise return None.