Skip to main content
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.

TMS.MCP.HTTPServer.hppPascalC++
procedure Write(AData: TBytes); overload; virtual; abstract;
virtual void __fastcall Write(System::Sysutils::TBytes AData) = 0 /* overload */;

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.

TMS.MCP.HTTPServer.hppPascalC++
procedure Write(const AData: string); overload; virtual; abstract;
virtual void __fastcall Write(const System::UnicodeString AData) = 0 /* overload */;

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.