TROIcsMessagePumpSocketAction

Overview

TROIcsMessagePumpSocketAction is a class that contains an indication for an action to be performed by a message pump thread on a given socket. It's used internally by the TROIcsMessagePumpThread to notify the thread main loop about enqueued actions.

Location

Properties


ActionKind

Indicates an action to be performed on a socket. * akAdd - Socket must be added to message pump. * akRemove - Socket must be removed from message pump.

property ActionKind: TROIcsMessagePumpSocketActionKind read write

ErrorMessage

property ErrorMessage: string read write

Socket

Socket object on which the selected action must be performed.

property Socket: TCustomWSocket read write

Status

Indicates the status of the current action, possible values include the following: * asPending - Action in progress. * asSuccess - Action completed successfully. * asError - Error occurred while performing an action.

property Status: TROIcsMessagePumpSocketActionStatus read write

Instance Methods


constructor Create

Creates a new instance.

constructor Create(ASocket: TCustomWSocket; AActionKind: TROIcsMessagePumpSocketActionKind)

Parameters:

  • ASocket:
  • AActionKind: