Sign in Join
FPDoc Onlineexperiment

TAdvancedSingleInstance.ClientPostCustomRequest function

Member of TAdvancedSingleInstancepublicIn unit AdvancedSingleInstance

Send a custom message to the server.

Declaration

pascal
function 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

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