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

TAdvancedSingleInstance.ClientPeekCustomResponse

Check whether the server posted a response.

Declaration

Source position: advancedsingleinstance.pas line 61

public function TAdvancedSingleInstance.ClientPeekCustomResponse(

  const aStream: TStream;

  out outMsgType: Integer

):Boolean;

Arguments

aStream

  

The stream in which to read the message.

outMsgType

  

The type of the received message.

Function result

True if a message was received, False otherwise.

Description

ClientPeekCustomResponse checks if the server posted any responses. It returns True if there was a message, and returns the message type in outMesgType, the payload is read into the stream aStream. The message timeout TimeoutMessages is observed: if no message arrived before the timeout expires the call will return False.

Errors

If this application instance is not a client instance, then a ESingleInstance exception is raised. The aStream must be non-nil, or an access violation will occur.

See also

TimeoutMessages

TAdvancedSingleInstance.ServerPostCustomResponse

  

Post a server response to the client.


Documentation generated on: Jul 24 2023