TROServerSocket

Overview

Location

 

constructor Create

constructor Create

AbortSocket    (declared in TROSocket)

procedure AbortSocket

Accept    (declared in TROSocket)

function Accept: THandle

Active

property Active: Boolean read write

Bind    (declared in TROSocket)

procedure Bind(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

BindList

property BindList: TStrings read write

CanRead    (declared in TROSocket)

function CanRead(aTimeout: Integer): Boolean

Parameters:

  • aTimeout:

CloseSocket    (declared in TROSocket)

procedure CloseSocket

Connect    (declared in TROSocket)

procedure Connect(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CreateSocket    (declared in TROSocket)

procedure CreateSocket

ExceptCheck    (declared in TROSocket)

procedure ExceptCheck(aRaiseExcept: Boolean; aAbortSocket: Boolean)

Parameters:

  • aRaiseExcept:
  • aAbortSocket:

GetErrorDescEx    (declared in TROSocket)

function GetErrorDescEx: string

GetLocalSinIP    (declared in TROSocket)

function GetLocalSinIP: string

GetRemoteSinIP    (declared in TROSocket)

function GetRemoteSinIP: string

GetSins    (declared in TROSocket)

procedure GetSins

LastError    (declared in TROSocket)

property LastError: Integer read write

LastErrorDesc    (declared in TROSocket)

property LastErrorDesc: string read write

Listen    (declared in TROSocket)

procedure Listen(aBacklog: Integer)

Parameters:

  • aBacklog:

MaxThreads

property MaxThreads: Integer read write

Mode    (declared in TROSocket)

property Mode: TROSocketMode read write

NoDelay    (declared in TROSocket)

Controls TCP packet batching (Nagle's algorithm).
TCP normally batches small logical packets into single larger physical packets (by briefly delaying packets) to fill physical network frames with as much data as possible. This is intended to improve network throughput in terminal emulation environments where mostly keystrokes are being sent across the network. Setting NoDelay to true disables TCP packet batching. Disabling TCP packet batching means that packets are sent regardless of size; this increases the volume of network traffic.

property NoDelay: Boolean read write

OnMaxThreadLimitReached

property OnMaxThreadLimitReached: TThreadMethod read write

OnNewConnection

property OnNewConnection: TRONewConnection read write
delegate: procedure OnNewConnection(Sender: TObject; aSocket: TROSocket)

OnNewSocket

property OnNewSocket: TRONewSocketEvent read write
delegate: function OnNewSocket(Sender: TObject; aSock: THandle): TROSocket

OpenSSL    (declared in TROSocket)

property OpenSSL: TROOpenSSL read write

OpenSSL_Connect    (declared in TROSocket)

procedure OpenSSL_Connect

Port

property Port: Integer read write

PreferIP4    (declared in TROSocket)

property PreferIP4: Boolean read write

RaiseExcept    (declared in TROSocket)

property RaiseExcept: Boolean read write

RecvBufferEx    (declared in TROSocket)

function RecvBufferEx(Buffer: Pointer; Len: Integer; aTimeout: Integer): Integer

Parameters:

  • Buffer:
  • Len:
  • aTimeout:

ResetLastError    (declared in TROSocket)

procedure ResetLastError

SendBuffer    (declared in TROSocket)

function SendBuffer(Buffer: Pointer; Len: Integer): Boolean

Parameters:

  • Buffer:
  • Len:

SockCheck    (declared in TROSocket)

function SockCheck(SockResult: Integer): Integer

Parameters:

  • SockResult:

Socket    (declared in TROSocket)

property Socket: THandle read write

 

Active

property Active: Boolean read write

BindList

property BindList: TStrings read write

LastError    (declared in TROSocket)

property LastError: Integer read write

LastErrorDesc    (declared in TROSocket)

property LastErrorDesc: string read write

MaxThreads

property MaxThreads: Integer read write

Mode    (declared in TROSocket)

property Mode: TROSocketMode read write

NoDelay    (declared in TROSocket)

Controls TCP packet batching (Nagle's algorithm).
TCP normally batches small logical packets into single larger physical packets (by briefly delaying packets) to fill physical network frames with as much data as possible. This is intended to improve network throughput in terminal emulation environments where mostly keystrokes are being sent across the network. Setting NoDelay to true disables TCP packet batching. Disabling TCP packet batching means that packets are sent regardless of size; this increases the volume of network traffic.

property NoDelay: Boolean read write

OnMaxThreadLimitReached

property OnMaxThreadLimitReached: TThreadMethod read write

OpenSSL    (declared in TROSocket)

property OpenSSL: TROOpenSSL read write

Port

property Port: Integer read write

PreferIP4    (declared in TROSocket)

property PreferIP4: Boolean read write

RaiseExcept    (declared in TROSocket)

property RaiseExcept: Boolean read write

Socket    (declared in TROSocket)

property Socket: THandle read write

 

constructor Create

constructor Create

AbortSocket    (declared in TROSocket)

procedure AbortSocket

Accept    (declared in TROSocket)

function Accept: THandle

Bind    (declared in TROSocket)

procedure Bind(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CanRead    (declared in TROSocket)

function CanRead(aTimeout: Integer): Boolean

Parameters:

  • aTimeout:

CloseSocket    (declared in TROSocket)

procedure CloseSocket

Connect    (declared in TROSocket)

procedure Connect(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CreateSocket    (declared in TROSocket)

procedure CreateSocket

ExceptCheck    (declared in TROSocket)

procedure ExceptCheck(aRaiseExcept: Boolean; aAbortSocket: Boolean)

Parameters:

  • aRaiseExcept:
  • aAbortSocket:

GetErrorDescEx    (declared in TROSocket)

function GetErrorDescEx: string

GetLocalSinIP    (declared in TROSocket)

function GetLocalSinIP: string

GetRemoteSinIP    (declared in TROSocket)

function GetRemoteSinIP: string

GetSins    (declared in TROSocket)

procedure GetSins

Listen    (declared in TROSocket)

procedure Listen(aBacklog: Integer)

Parameters:

  • aBacklog:

OpenSSL_Connect    (declared in TROSocket)

procedure OpenSSL_Connect

RecvBufferEx    (declared in TROSocket)

function RecvBufferEx(Buffer: Pointer; Len: Integer; aTimeout: Integer): Integer

Parameters:

  • Buffer:
  • Len:
  • aTimeout:

ResetLastError    (declared in TROSocket)

procedure ResetLastError

SendBuffer    (declared in TROSocket)

function SendBuffer(Buffer: Pointer; Len: Integer): Boolean

Parameters:

  • Buffer:
  • Len:

SockCheck    (declared in TROSocket)

function SockCheck(SockResult: Integer): Integer

Parameters:

  • SockResult:

 

OnNewConnection

property OnNewConnection: TRONewConnection read write
delegate: procedure OnNewConnection(Sender: TObject; aSocket: TROSocket)

OnNewSocket

property OnNewSocket: TRONewSocketEvent read write
delegate: function OnNewSocket(Sender: TObject; aSock: THandle): TROSocket