TROIcsMessagePumpThreadList

Overview

The TROIcsMessagePumpThreadList represents a list of message pump threads. This class is used internally by the TROIcsAsyncSuperTCPServer to manage pump threads.

Location

Properties


Items

Provides direct access to the message pump object with the given index.

property Items[Index: Integer]: TROIcsMessagePumpThread read write

MaxClientsPerPump

Property that identifies how many clients can be assigned to each message pump. If value is 0, an unlimited number of clients can be assigned.

property MaxClientsPerPump: Integer read write

MinCount

Stores the minimum count of message pumps. When the current pump counts lesser than the assigned value, new pump threads will be created.

property MinCount: Integer read write

Instance Methods


GetMessagePump

Returns the first available pump and attaches the given socket to it. If there is no pump available, a new one will be created.

function GetMessagePump(ASocket: TCustomWSocket): TROIcsMessagePumpThread

Parameters:

  • ASocket: