libmuscle.mcp.tcp_transport_client module¶
- class libmuscle.mcp.tcp_transport_client.TcpTransportClient(location: str)[source]¶
Bases:
libmuscle.mcp.transport_client.TransportClient
A client that connects to a TCPTransport server.
Create a TcpClient for a given location.
The client will connect to this location and be able to request messages from any instance and port represented by it.
- Parameters
location – A location string for the peer.
- call(request: bytes) bytes [source]¶
Send a request to the server and receive the response.
This is a blocking call.
- Parameters
request – The request to send
- Returns
The received response