Table of Contents

TTMSMCPHTTPServerConnection.Write Method

Writes raw bytes to the connection.

API unit family: TMS.MCP.HTTPServer Declaring type: TTMSMCPHTTPServerConnection

Overloads

Overload 1

Writes raw bytes to the connection.

procedure Write(AData: TBytes); overload; virtual; abstract;

Remarks

Implemented by the platform's own server. Use this form when the payload is already encoded.

Parameters

Name Description
AData Bytes to write, sent exactly as given.

Exceptions

Exception Description
Exception Raised when the connection has already been closed by the client.

Overload 2

Writes text to the connection.

procedure Write(const AData: string); overload; virtual; abstract;

Remarks

Implemented by the platform's own server.

Parameters

Name Description
AData Text to write. No line ending is added.

Exceptions

Exception Description
Exception Raised when the connection has already been closed by the client.