nvflare.fuel.f3.drivers.net_utils module¶
- get_tcp_urls(scheme: str, resources: dict) -> (<class 'str'>, <class 'str'>)[source]¶
Generate URL pairs for connecting and listening for TCP-based protocols
- Parameters:
scheme – The transport scheme
resources – The resource restrictions like port ranges
- Returns:
a tuple with connecting and listening URL
- Raises:
CommError – If any error happens while sending the request