TAdvancedSingleInstance.ClientSendCustomRequest function
ClientSendCustomRequest.
Declaration
function ClientSendCustomRequest(const aMsgType: Integer;
const aStream: TStream): Boolean
; overload
function ClientSendCustomRequest(const aMsgType: Integer;
const aStream: TStream;
out outRequestID: Integer): Boolean
; overloadArguments
aMsgType | Message type. |
aStream | Message payload. |
outRequestID | On return, contains the message ID. |
Function result
True if the message was sent successfully,
False otherwise.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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
