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

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

DefaultFamily    (declared in TROSocket)

property DefaultFamily: Word read write

ExceptCheck    (declared in TROSocket)

procedure ExceptCheck

GetErrorDescEx    (declared in TROSocket)

function GetErrorDescEx: string

GetRemoteSinIP    (declared in TROSocket)

function GetRemoteSinIP: string

GetSinLocal    (declared in TROSocket)

procedure GetSinLocal

GetSinRemote    (declared in TROSocket)

procedure GetSinRemote

GetSins    (declared in TROSocket)

procedure GetSins

IP6used    (declared in TROSocket)

property IP6used: Boolean read write

LastError    (declared in TROSocket)

property LastError: Integer read write

LastErrorDesc    (declared in TROSocket)

property LastErrorDesc: string read write

Listen    (declared in TROSocket)

procedure Listen

MaxThreads

property MaxThreads: Integer read write

NoDelay    (declared in TROSocket)

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

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:

SetSin    (declared in TROSocket)

procedure SetSin(var Sin: sockaddr_storage; IP: string; Port: Word)

Parameters:

  • Sin:
  • IP:
  • Port:

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

DefaultFamily    (declared in TROSocket)

property DefaultFamily: Word read write

IP6used    (declared in TROSocket)

property IP6used: Boolean 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

NoDelay    (declared in TROSocket)

property NoDelay: Boolean read write

OnMaxThreadLimitReached

property OnMaxThreadLimitReached: TThreadMethod 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:

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

GetErrorDescEx    (declared in TROSocket)

function GetErrorDescEx: string

GetRemoteSinIP    (declared in TROSocket)

function GetRemoteSinIP: string

GetSinLocal    (declared in TROSocket)

procedure GetSinLocal

GetSinRemote    (declared in TROSocket)

procedure GetSinRemote

GetSins    (declared in TROSocket)

procedure GetSins

Listen    (declared in TROSocket)

procedure Listen

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:

SetSin    (declared in TROSocket)

procedure SetSin(var Sin: sockaddr_storage; IP: string; Port: Word)

Parameters:

  • Sin:
  • IP:
  • Port:

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