TROWSocketServer

Overview

The TROWSocketServer class is used internally by the TROCustomIcsAsyncSuperTCPServer class to accept incoming connections.

This class is not designed to be used outside of the TROCustomIcsAsyncSuperTCPServer implementation.

Location

  • Unit: uROIcsAsyncSuperTcpServer.pas
  • Ancestry: TCustomWSocketServer | TROWSocketServer

 

constructor Create  reintroduce

Creates a new instance.

constructor Create(AServer: TROCustomIcsAsyncSuperTCPServer)

Parameters:

  • AServer: Becomes the value of the Server property.

Client

Brings the OverbyteIcs's TCustomWSocketServer property, which allows an indexed access to the TWSocketClient, to public visibility (please also refer to the ClientCount).

property Client:

ClientCount

Brings the OverbyteIcs's TCustomWSocketServer property, which indicates how many clients are currently connected (accessible through the Client property), to public visibility.

property ClientCount:

Listen  override

Overrides the OverbyteIcs's TCustomWSocketServer for debugging purposes by simply calling an inherited version.

procedure Listen

MessagePumpThread

Access to the TROIcsMessagePumpThread which uses Windows message queuing for scheduling.

property MessagePumpThread: TROIcsMessagePumpThread read write

Server

The instance of the TROCustomIcsAsyncSuperTCPServer that created this socket.

property Server: TROCustomIcsAsyncSuperTCPServer read write

TriggerClientConnect  protected override

Overrides the OverbyteIcs's TCustomWSocketServer for log processing and adjusting the socket's options; then calls an inherited version.

procedure TriggerClientConnect(Client: TWSocketClient; Error: Word)

Parameters:

  • Client: TWSocketClient instance
  • Error: Error code

WndProc  protected override

Overrides the OverbyteIcs's TCustomWSocketServer for debugging purposes, logs MsgRec and calls an inherited version.

procedure WndProc(var MsgRec: TMessage)

Parameters:

  • MsgRec: Specified Windows message

 

Client

Brings the OverbyteIcs's TCustomWSocketServer property, which allows an indexed access to the TWSocketClient, to public visibility (please also refer to the ClientCount).

property Client:

ClientCount

Brings the OverbyteIcs's TCustomWSocketServer property, which indicates how many clients are currently connected (accessible through the Client property), to public visibility.

property ClientCount:

MessagePumpThread

Access to the TROIcsMessagePumpThread which uses Windows message queuing for scheduling.

property MessagePumpThread: TROIcsMessagePumpThread read write

Server

The instance of the TROCustomIcsAsyncSuperTCPServer that created this socket.

property Server: TROCustomIcsAsyncSuperTCPServer read write

 

constructor Create  reintroduce

Creates a new instance.

constructor Create(AServer: TROCustomIcsAsyncSuperTCPServer)

Parameters:

  • AServer: Becomes the value of the Server property.

Listen  override

Overrides the OverbyteIcs's TCustomWSocketServer for debugging purposes by simply calling an inherited version.

procedure Listen

TriggerClientConnect  protected override

Overrides the OverbyteIcs's TCustomWSocketServer for log processing and adjusting the socket's options; then calls an inherited version.

procedure TriggerClientConnect(Client: TWSocketClient; Error: Word)

Parameters:

  • Client: TWSocketClient instance
  • Error: Error code

WndProc  protected override

Overrides the OverbyteIcs's TCustomWSocketServer for debugging purposes, logs MsgRec and calls an inherited version.

procedure WndProc(var MsgRec: TMessage)

Parameters:

  • MsgRec: Specified Windows message

See Also