Sign in Join
FPDoc Onlineexperiment

TAdvancedSingleInstance.ServerPostCustomResponse procedure

Member of TAdvancedSingleInstancepublicIn unit AdvancedSingleInstance

Post a server response to the client.

Declaration

pascal
procedure ServerPostCustomResponse(const aRequestID: Integer; 
 const aMsgType: Integer; 
 const aStream: TStream)

Arguments

aRequestID

Client request ID to respond to.

aMsgType

Message type for the message.

aStream

Message payload.

Description

ClientPostCustomRequest> sends the data in aStream to the client instance using message type aMsgType, in response to client message aRequestID. The client can check for the response using ClientPeekCustomResponse

Errors

If this application instance is not a server instance, then a ESingleInstance exception is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.