TROSocket

Overview

Location


 

constructor Create

Creates a new instance.

constructor Create

AbortSocket

procedure AbortSocket

Accept

function Accept: THandle

Bind

procedure Bind(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CanRead  virtual

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

IsValidSocket

function IsValidSocket: Boolean

LastError

property LastError: Integer read

LastErrorDesc

property LastErrorDesc: string read

Listen

Establishes a socket to listen for an incoming connection.

procedure Listen(aBacklog: Integer)

Parameters:

  • aBacklog: Desired maximum length of the queue of pending connections. This value may be changed by the transport layer.

Mode

property Mode: TROSocketMode read

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

Specifies SSL properties

property OpenSSL: TROOpenSSL read

OpenSSL_Connect

procedure OpenSSL_Connect

PreferIP4

property PreferIP4: Boolean read write

RaiseExcept

property RaiseExcept: Boolean read write

RecvBufferEx  virtual

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

LastErrorDesc

property LastErrorDesc: string read

Mode

property Mode: TROSocketMode read

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

Specifies SSL properties

property OpenSSL: TROOpenSSL read

PreferIP4

property PreferIP4: Boolean read write

RaiseExcept

property RaiseExcept: Boolean read write

Socket

property Socket: THandle read write

 

constructor Create

Creates a new instance.

constructor Create

AbortSocket

procedure AbortSocket

Accept

function Accept: THandle

Bind

procedure Bind(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CanRead  virtual

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

IsValidSocket

function IsValidSocket: Boolean

Listen

Establishes a socket to listen for an incoming connection.

procedure Listen(aBacklog: Integer)

Parameters:

  • aBacklog: Desired maximum length of the queue of pending connections. This value may be changed by the transport layer.

OpenSSL_Connect

procedure OpenSSL_Connect

RecvBufferEx  virtual

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: