nvflare.fuel.f3.drivers.tcp_driver module¶
- class TcpDriver[source]¶
Bases:
BaseDriver
- connect(connector: ConnectorInfo)[source]¶
Start the driver in active mode
- Parameters:
connector – Connector with parameters
- Raises:
CommError – If any errors
- static get_urls(scheme: str, resources: dict) -> (<class 'str'>, <class 'str'>)[source]¶
Get active and passive URL pair based on resources
- Parameters:
scheme – A scheme supported by the driver, like http or https
resources – User specified resources like host and port ranges.
- Returns:
A tuple with active and passive URLs
- Raises:
CommError – If no free port can be found
- listen(connector: ConnectorInfo)[source]¶
Start the driver in passive mode
- Parameters:
connector – Connector with parameters
- Raises:
CommError – If any errors
- class TcpStreamServer(driver: Driver, connector: ConnectorInfo)[source]¶
Bases:
ThreadingTCPServer
Constructor. May be extended, do not override.