TROSocket

Overview

Location


 

constructor Create

constructor Create

AbortSocket

procedure AbortSocket

Accept

function Accept: THandle

Bind

procedure Bind(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CanRead

function CanRead(aTimeout: Integer): Boolean

Parameters:

  • aTimeout:

CloseSocket

procedure CloseSocket

Connect

procedure Connect(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CreateSocket

procedure CreateSocket

ExceptCheck

procedure ExceptCheck(aRaiseExcept: Boolean; aAbortSocket: Boolean)

Parameters:

  • aRaiseExcept:
  • aAbortSocket:

GetErrorDescEx

function GetErrorDescEx: string

GetLocalSinIP

function GetLocalSinIP: string

GetRemoteSinIP

function GetRemoteSinIP: string

GetSins

procedure GetSins

LastError

property LastError: Integer read write

LastErrorDesc

property LastErrorDesc: string read write

Listen

procedure Listen(aBacklog: Integer)

Parameters:

  • aBacklog:

Mode

property Mode: TROSocketMode read write

NoDelay

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

OpenSSL

property OpenSSL: TROOpenSSL read write

OpenSSL_Connect

procedure OpenSSL_Connect

PreferIP4

property PreferIP4: Boolean read write

RaiseExcept

property RaiseExcept: Boolean read write

RecvBufferEx

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

Parameters:

  • Buffer:
  • Len:
  • aTimeout:

ResetLastError

procedure ResetLastError

SendBuffer

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

Parameters:

  • Buffer:
  • Len:

SockCheck

function SockCheck(SockResult: Integer): Integer

Parameters:

  • SockResult:

Socket

property Socket: THandle read write

 

LastError

property LastError: Integer read write

LastErrorDesc

property LastErrorDesc: string read write

Mode

property Mode: TROSocketMode read write

NoDelay

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

OpenSSL

property OpenSSL: TROOpenSSL read write

PreferIP4

property PreferIP4: Boolean read write

RaiseExcept

property RaiseExcept: Boolean read write

Socket

property Socket: THandle read write

 

constructor Create

constructor Create

AbortSocket

procedure AbortSocket

Accept

function Accept: THandle

Bind

procedure Bind(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CanRead

function CanRead(aTimeout: Integer): Boolean

Parameters:

  • aTimeout:

CloseSocket

procedure CloseSocket

Connect

procedure Connect(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CreateSocket

procedure CreateSocket

ExceptCheck

procedure ExceptCheck(aRaiseExcept: Boolean; aAbortSocket: Boolean)

Parameters:

  • aRaiseExcept:
  • aAbortSocket:

GetErrorDescEx

function GetErrorDescEx: string

GetLocalSinIP

function GetLocalSinIP: string

GetRemoteSinIP

function GetRemoteSinIP: string

GetSins

procedure GetSins

Listen

procedure Listen(aBacklog: Integer)

Parameters:

  • aBacklog:

OpenSSL_Connect

procedure OpenSSL_Connect

RecvBufferEx

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

Parameters:

  • Buffer:
  • Len:
  • aTimeout:

ResetLastError

procedure ResetLastError

SendBuffer

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

Parameters:

  • Buffer:
  • Len:

SockCheck

function SockCheck(SockResult: Integer): Integer

Parameters:

  • SockResult: