Skip to content

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;

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

Name Description
TAdvancedSingleInstance.ClientSendCustomRequest ClientSendCustomRequest.
TAdvancedSingleInstance.ServerPostCustomResponse Post a server response to the client.