libmuscle.mcp.tcp_transport_server module
- class libmuscle.mcp.tcp_transport_server.TcpHandler(*args: Any, **kwargs: Any)[source]
Bases:
BaseRequestHandlerHandler for MCP-over-TCP connections.
This is a Python handler for Python’s TCPServer, which forwards to the RequestHandler attached to the server.
There’s a small terminology issue here: Python calls an entire connection a request, so self.request actually refers to the current connection we’re servicing. We’re doing Remote Procedure Call over that, and we call every RPC call we receive from the client a request also.
- class libmuscle.mcp.tcp_transport_server.TcpTransportServer(handler: RequestHandler, port: int = 0)[source]
Bases:
TransportServerA TransportServer that uses TCP to communicate.