Unit 'AdvancedSingleInstance' Package
[Overview][Types][Classes][Index] [#fcl]

TAdvancedSingleInstance.ServerPostCustomResponse

Post a server response to the client.

Declaration

Source position: advancedsingleinstance.pas line 67

public procedure TAdvancedSingleInstance.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 TAdvancedSingleInstance.ClientPeekCustomResponse

Errors

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

See also

TAdvancedSingleInstance.ClientPostCustomRequest

  

Send a custom message to the server.

TAdvancedSingleInstance.ClientSendCustomRequest

  

ClientSendCustomRequest.

TAdvancedSingleInstance.ClientPeekCustomResponse

  

Check whether the server posted a response.


Documentation generated on: Dec 22 2024