TROIcsMessagePumpThread Class

From RemObjects Wiki
Jump to: navigation, search

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update

InterfacesClassesAliasesImplements

Contents

Overview

The TROIcsMessagePumpThread reads messages for a given number of sockets. This kind of thread is created internally by the TROIcsMessagePumpThreadList, depending on its options.

The TROIcsAsyncSuperTCPServer class uses these threads internally to handle socket messages in the background. By default, there are numerous sockets per thread, but this can be changed by setting the TROIcsAsyncSuperTCPServer.MaxClientsPerPump property.


Location

uROIcsAsyncSuperTcpServer.pas


Properties

SocketCount



property SocketCount: Integer read


Instance Methods

constructor Create (Boolean)     (declared in TROInitializedThread)

Creates a new class instance (standard thread class constructor).


constructor Create(CreateSuspended: Boolean)


Parameters:

  • CreateSuspended: When set to true, this parameter allows to create a thread that will not be started right after it is created. This allows to do some thread class configuration before the execution begins.


constructor Create (TROIcsMessagePumpThreadList)



constructor Create(AOwner: TROIcsMessagePumpThreadList)


Parameters:

  • AOwner:


destructor Destroy   override



destructor Destroy


AddSocket



function AddSocket(ASocket: TCustomWSocket; out ErrorMessage: string): Boolean


Parameters:

  • ASocket:
  • ErrorMessage:


DoTerminate   protected override



procedure DoTerminate


Execute   protected override     (declared in TROInitializedThread)

This method will be executed on the background thread, and should contain the user code. In this class, the Execute method must not be overridden in descendant classes, override IntExecute instead.


procedure Execute


IntExecute   override



procedure IntExecute


RemoveSocket



function RemoveSocket(ASocket: TCustomWSocket; out ErrorMessage: string): Boolean


Parameters:

  • ASocket:
  • ErrorMessage:


See Also


Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript

GlossaryArticlesLibrarySamples

Personal tools
Namespaces

Variants
Actions
Navigation
products
platforms
special
Toolbox