ClientSendCustomRequest.
Source position: advancedsingleinstance.pas line 65
public function TAdvancedSingleInstance.ClientSendCustomRequest( |
const aMsgType: Integer; |
const aStream: TStream |
):Boolean; overload; |
const aMsgType: Integer; |
const aStream: TStream; |
out outRequestID: Integer |
):Boolean; overload; |
aMsgType |
|
Message type. |
aStream |
|
Message payload. |
True if the message was sent successfully, False otherwise.
aMsgType |
|
Message type. |
aStream |
|
Message payload. |
outRequestID |
|
On return, contains the message ID. |
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.
If this application instance is not a client instance, then a ESingleInstance exception is raised.
|
Send a custom message to the server. |
|
|
Post a server response to the client. |