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

TAdvancedSingleInstance.ClientPostCustomRequest

Send a custom message to the server.

Declaration

Source position: advancedsingleinstance.pas line 64

public function TAdvancedSingleInstance.ClientPostCustomRequest(

  const aMsgType: Integer;

  const aStream: TStream

):Integer;

Arguments

aMsgType

  

Message type to send.

aStream

  

Message payload as a stream.

Function result

Message ID of the posted message.

Description

ClientPostCustomRequest> sends the data in aStream to the server instance using message type aMsgType. It returns the message id.

Errors

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

See also

TAdvancedSingleInstance.ClientSendCustomRequest

  

ClientSendCustomRequest.

TAdvancedSingleInstance.ServerPostCustomResponse

  

Post a server response to the client.


Documentation generated on: Dec 22 2024