TAdvancedSingleInstance.ClientPeekCustomResponse function
Check whether the server posted a response.
Declaration
function ClientPeekCustomResponse(const aStream: TStream;
out outMsgType: Integer): BooleanArguments
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
- ServerPostCustomResponse
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
