Skip to main content
Table of Contents

TTMSMCPHTTPServerConnection.ReadBytes Method

Reads bytes from the connection into a buffer.

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

Syntax

TMS.MCP.HTTPServer.hppPascalC++
procedure ReadBytes(var ABuffer: TBytes; ALength: Integer); virtual; abstract;
virtual void __fastcall ReadBytes(System::Sysutils::TBytes &ABuffer, int ALength) = 0;

Remarks

Implemented by the platform's own server. Rarely needed, because the request body is available through the request itself.

Parameters

Name Description
ABuffer Buffer receiving the bytes read.
ALength Number of bytes to read.

Exceptions

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