TROAsyncSocket

Overview

Location

 

constructor Create (TROSocketMode)  overload

constructor Create(aMode: TROSocketMode)

Parameters:

  • aMode:

constructor Create (TROSocketMode, THandle)  overload

constructor Create(aMode: TROSocketMode; aHandle: THandle)

Parameters:

  • aMode:
  • aHandle:

BeginAccept

procedure BeginAccept(aCallback: TROSocketCallback)

Parameters:

  • aCallback:

BeginConnect

procedure BeginConnect(const aIp: string; aPort: Integer; aCallback: TROSocketCallback)

Parameters:

  • aIp:
  • aPort:
  • aCallback:

BeginDisconnect

procedure BeginDisconnect(aCallback: TROSocketCallback)

Parameters:

  • aCallback:

BeginReadLine

procedure BeginReadLine(aCallback: TROSocketCallback)

Parameters:

  • aCallback:

BeginReceive

procedure BeginReceive(aData: Pointer; aStart: Integer; aLength: Integer; aCallback: TROSocketCallback)

Parameters:

  • aData:
  • aStart:
  • aLength:
  • aCallback:

BeginSend

procedure BeginSend(aData: Pointer; aStart: Integer; aLength: Integer; aCallback: TROSocketCallback)

Parameters:

  • aData:
  • aStart:
  • aLength:
  • aCallback:

Bind

procedure Bind(const aIp: string; aPort: Integer)

Parameters:

  • aIp:
  • aPort:

Buffered

property Buffered: Boolean read write

BufferReadLine

function BufferReadLine(var aLine: TBytes): Boolean

Parameters:

  • aLine:

EndAccept

function EndAccept: TROAsyncSocket

EndConnect

function EndConnect: Boolean

EndDisconnect

procedure EndDisconnect

EndReadLine

function EndReadLine(var aLine: string): Boolean

Parameters:

  • aLine:

EndReceive

function EndReceive: Integer

EndSend

function EndSend: Integer

GetLocalIp

function GetLocalIp: string

GetLocalPort

function GetLocalPort: Integer

GetRemoteIp

function GetRemoteIp: string

GetRemotePort

function GetRemotePort: Integer

IdleTimeout

property IdleTimeout: Integer read write

Listen

procedure Listen(aBacklog: Integer)

Parameters:

  • aBacklog:

MaxLineLength

property MaxLineLength: Integer read write

NoDelay

property NoDelay: Boolean read write

OnDisconnected

property OnDisconnected: TROSocketCallback read write
delegate: procedure OnDisconnected(Sender: TROAsyncSocket)

OnTimeout

property OnTimeout: TROSocketCallback read write
delegate: procedure OnTimeout(Sender: TROAsyncSocket)

ReceiverBufferSize

property ReceiverBufferSize: Integer read write

SendBufferSize

property SendBufferSize: Integer read write

 

Buffered

property Buffered: Boolean read write

IdleTimeout

property IdleTimeout: Integer read write

MaxLineLength

property MaxLineLength: Integer read write

NoDelay

property NoDelay: Boolean read write

ReceiverBufferSize

property ReceiverBufferSize: Integer read write

SendBufferSize

property SendBufferSize: Integer read write

 

constructor Create (TROSocketMode)  overload

constructor Create(aMode: TROSocketMode)

Parameters:

  • aMode:

constructor Create (TROSocketMode, THandle)  overload

constructor Create(aMode: TROSocketMode; aHandle: THandle)

Parameters:

  • aMode:
  • aHandle:

BeginAccept

procedure BeginAccept(aCallback: TROSocketCallback)

Parameters:

  • aCallback:

BeginConnect

procedure BeginConnect(const aIp: string; aPort: Integer; aCallback: TROSocketCallback)

Parameters:

  • aIp:
  • aPort:
  • aCallback:

BeginDisconnect

procedure BeginDisconnect(aCallback: TROSocketCallback)

Parameters:

  • aCallback:

BeginReadLine

procedure BeginReadLine(aCallback: TROSocketCallback)

Parameters:

  • aCallback:

BeginReceive

procedure BeginReceive(aData: Pointer; aStart: Integer; aLength: Integer; aCallback: TROSocketCallback)

Parameters:

  • aData:
  • aStart:
  • aLength:
  • aCallback:

BeginSend

procedure BeginSend(aData: Pointer; aStart: Integer; aLength: Integer; aCallback: TROSocketCallback)

Parameters:

  • aData:
  • aStart:
  • aLength:
  • aCallback:

Bind

procedure Bind(const aIp: string; aPort: Integer)

Parameters:

  • aIp:
  • aPort:

BufferReadLine

function BufferReadLine(var aLine: TBytes): Boolean

Parameters:

  • aLine:

EndAccept

function EndAccept: TROAsyncSocket

EndConnect

function EndConnect: Boolean

EndDisconnect

procedure EndDisconnect

EndReadLine

function EndReadLine(var aLine: string): Boolean

Parameters:

  • aLine:

EndReceive

function EndReceive: Integer

EndSend

function EndSend: Integer

GetLocalIp

function GetLocalIp: string

GetLocalPort

function GetLocalPort: Integer

GetRemoteIp

function GetRemoteIp: string

GetRemotePort

function GetRemotePort: Integer

Listen

procedure Listen(aBacklog: Integer)

Parameters:

  • aBacklog:

 

OnDisconnected

property OnDisconnected: TROSocketCallback read write
delegate: procedure OnDisconnected(Sender: TROAsyncSocket)

OnTimeout

property OnTimeout: TROSocketCallback read write
delegate: procedure OnTimeout(Sender: TROAsyncSocket)