TTMSMCPStdioTransport.Run Method
Starts the channel if needed and serves messages until it stops.
API unit family: TMS.MCP.Transport.STDIO
Declaring type: TTMSMCPStdioTransport
Syntax
procedure Run; override;
Remarks
This call blocks. Because the read blocks on standard input, the loop parks between messages rather than spinning, and it ends when standard input closes - which happens when the client that launched the process goes away - or when TTMSMCPStdioTransport.Stop is called. Exceptions from individual messages are reported through TTMSMCPTransport.OnError and do not end the loop.
Exceptions
| Exception | Description |
|---|---|
Exception |
Raised when no message handler has been assigned. |