TSendEvent

Overview

The TSendEvent class implements the IROThreadPoolCallback and it is used internally by the TROBaseAsyncSuperTcpServer and TROIcsAsyncSuperChannelWorker classes for sending data.
If TROBaseAsyncSuperTcpServer is false, operations will be executed in a background thread with help of the TROThreadPool class, otherwise the current execution thread is used.

Location

  • Unit: uROAsyncSuperTcpServer.pas
  • Ancestry: TInterfacedObject | TSendEvent

Implements

Properties


WorkerOverride

This property is used by Callback to dispatch between the TROAsyncSuperChannelWorker.
This feature is used by the TROIcsAsyncSuperChannelWorker to switch a transport.

property WorkerOverride: IROTransport read write

Instance Methods


constructor Create

Initializes the instance with the given parameters.

constructor Create(aOwner: TROBaseAsyncSuperTcpServer; aClientGuid: TGUID; aSender: TROEventRepository; aData: TROEventData)

Parameters:

  • aOwner: Creator
  • aClientGuid: The session's identifier
  • aSender: Event repository
  • aData: Data to send

Callback

Implements the IROThreadPoolCallback by calling the TROAsyncSuperChannelWorker.

procedure Callback(Caller: TROThreadPool; Thread: TThread)

Parameters:

  • Caller: which pool is doing call
  • Thread: The caller's thread

See Also