libmuscle.mcp.direct_client module¶
- class libmuscle.mcp.direct_client.DirectClient(instance_id: Reference, location: str)[source]¶
Bases:
Client
A client that connects to an MCP server directly.
This client connects to a DirectServer, and together they provide communication within in the same process.
Create a DirectClient 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
instance_id – Our instance id.
location – A location string.