Skip to content

TSimpleIPCServer.MaxAction

Action to take when the number of messages will exceed MaxQueue.

Declaration

Source position: simpleipc.pp line 238

published property MaxAction: TIPCMessageOverflowAction default DefaultMaxAction;

Description

MaxAction determines what will happen if the number of messages on the queue equals MaxQueue and a new message is put in the queue during PeekMessage:

Do nothing, just add the message.
Discard the oldest message.
Discard the new message.

See also

Name Description
TSimpleIPCServer.MaxQueue Maximum number of messages in the queue, 0 for unlimited.
TSimpleIPCServer.PeekMessage Check if a client message is available.
TIPCMessageOverflowAction Action to take when the message queue is going to overflow.