libmuscle.mcp.pipe_server module

class libmuscle.mcp.pipe_server.PipeServer(instance_id: Reference, post_office: PostOffice)[source]

Bases: Server

A server that accepts MCP connections over pipes.

This server uses the pipe_multiplexer module to service message requests arriving via a pipe to another process containing a compute element instance.

Create a PipeServer.

Parameters

instance_id – Id of the instance for which we’re serving.

close() None[source]

Closes this server.

Stops the server listening, waits for existing clients to disconnect, then frees any other resources.

get_location() str[source]

Returns the location this server listens on.

Returns

A string containing the location.