TROSocket

Overview

Location

 

constructor Create

constructor Create

AbortSocket

procedure AbortSocket

Accept

function Accept: THandle

Bind

procedure Bind(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CloseSocket

procedure CloseSocket

Connect

procedure Connect(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CreateSocket

procedure CreateSocket

DefaultFamily

property DefaultFamily: Word read write

ExceptCheck

procedure ExceptCheck

GetErrorDescEx

function GetErrorDescEx: string

GetRemoteSinIP

function GetRemoteSinIP: string

GetSinLocal

procedure GetSinLocal

GetSinRemote

procedure GetSinRemote

GetSins

procedure GetSins

IP6used

property IP6used: Boolean read write

LastError

property LastError: Integer read write

LastErrorDesc

property LastErrorDesc: string read write

Listen

procedure Listen

NoDelay

property NoDelay: Boolean read write

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:

SetSin

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

Parameters:

  • Sin:
  • IP:
  • Port:

SockCheck

function SockCheck(SockResult: Integer): Integer

Parameters:

  • SockResult:

Socket

property Socket: THandle read write

 

DefaultFamily

property DefaultFamily: Word read write

IP6used

property IP6used: Boolean read write

LastError

property LastError: Integer read write

LastErrorDesc

property LastErrorDesc: string read write

NoDelay

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

CloseSocket

procedure CloseSocket

Connect

procedure Connect(IP: string; Port: Word)

Parameters:

  • IP:
  • Port:

CreateSocket

procedure CreateSocket

ExceptCheck

procedure ExceptCheck

GetErrorDescEx

function GetErrorDescEx: string

GetRemoteSinIP

function GetRemoteSinIP: string

GetSinLocal

procedure GetSinLocal

GetSinRemote

procedure GetSinRemote

GetSins

procedure GetSins

Listen

procedure Listen

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:

SetSin

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

Parameters:

  • Sin:
  • IP:
  • Port:

SockCheck

function SockCheck(SockResult: Integer): Integer

Parameters:

  • SockResult:

Descendants