Skip to content

TSimpleIPCServer.GetMessageData

Read the data of the last message in a stream.

Declaration

Source position: simpleipc.pp line 218

public 
procedure TSimpleIPCServer.GetMessageData(Stream: TStream);

Description

GetMessageData reads the data of the last message from TSimpleIPCServer.MsgData and stores it in stream Stream. If no data was available, the stream will be cleared.

This function will return valid data only after a successful call to ReadMessage. It will also not clear the data buffer.

See also

Name Description
StringMessage Last message as a string.
MsgData Last message data.
MsgType Last message type.