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

TAdvancedSingleInstance.ClientSendCustomRequest

ClientSendCustomRequest.

Declaration

Source position: advancedsingleinstance.pas line 65

public function TAdvancedSingleInstance.ClientSendCustomRequest(

  const aMsgType: Integer;

  const aStream: TStream

):Boolean; overload;

function TAdvancedSingleInstance.ClientSendCustomRequest(

  const aMsgType: Integer;

  const aStream: TStream;

  out outRequestID: Integer

):Boolean; overload;

Arguments

aMsgType

  

Message type.

aStream

  

Message payload.

Function result

True if the message was sent successfully, False otherwise.

Arguments

aMsgType

  

Message type.

aStream

  

Message payload.

outRequestID

  

On return, contains the message ID.

Description

ClientPostCustomRequest> sends the data in aStream to the server instance using message type aMsgType. It returns True if the message was sent successfully. It returns the message id in outRequestID, if supplied.

Errors

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

See also

TAdvancedSingleInstance.ClientPostCustomRequest

  

Send a custom message to the server.

TAdvancedSingleInstance.ServerPostCustomResponse

  

Post a server response to the client.


Documentation generated on: Nov 23 2024