TROIndySuperTcpConnection
Overview
Location
- Unit: uROIndySuperTcpConnection.pas
- Ancestry: TROBaseSuperTcpConnection | TROIndySuperTcpConnection
constructor Create
Creates an instance with provided parameters.
constructor Create(aConnection: TIdTCPConnection; aFreeOnDestroy: Boolean)
Parameters:
- aConnection:
- aFreeOnDestroy:
Client_Connect override
procedure Client_Connect(const aHost: string; const aPort: Integer; aSSL: Boolean)
Parameters:
- aHost:
- aPort:
- aSSL:
Connection protected
property Connection: TIdTCPConnection read
Disconnect override
Called to disconnect the current connection.
procedure Disconnect
GetClientAddress override
Client addrerss
function GetClientAddress: string
IsConnected override
function IsConnected: Boolean
IsTimeoutError override
function IsTimeoutError: Boolean
PingFrequency protected (declared in TROBaseSuperTcpConnection)
property PingFrequency: Integer read
PingTimeOut protected (declared in TROBaseSuperTcpConnection)
property PingTimeOut: Integer read
ReadBuffer override
function ReadBuffer(var Data: ; Len: Integer): Integer
Parameters:
- Data:
- Len:
ReadByte override
function ReadByte: Byte
ReadInteger override
function ReadInteger: Integer
ReadString override
function ReadString(const aLen: Integer): ROAnsiString
Parameters:
- aLen:
SetNagle override
Controls whether data packets are sent individually or if small packets are held back to send as part of fewer larger data packets. Normally, you will want this disabled as it can have a significant effect on performance. The only time when its worth keeping the property enabled is when there are many small packets to be sent and you need to keep network bandwidth to a minimum.
See more at Nagle's algorithm
procedure SetNagle
TryReadByte override
function TryReadByte(var aValue: Byte): Boolean
Parameters:
- aValue:
WriteBuffer override
procedure WriteBuffer(const Data: ; Len: Integer)
Parameters:
- Data:
- Len:
WriteByte override
procedure WriteByte(const aValue: Byte)
Parameters:
- aValue:
WriteInteger override
procedure WriteInteger(const aValue: Integer)
Parameters:
- aValue:
WriteString override
procedure WriteString(const aValue: ROAnsiString)
Parameters:
- aValue:
Connection protected
property Connection: TIdTCPConnection read
PingFrequency protected (declared in TROBaseSuperTcpConnection)
property PingFrequency: Integer read
PingTimeOut protected (declared in TROBaseSuperTcpConnection)
property PingTimeOut: Integer read
constructor Create
Creates an instance with provided parameters.
constructor Create(aConnection: TIdTCPConnection; aFreeOnDestroy: Boolean)
Parameters:
- aConnection:
- aFreeOnDestroy:
Client_Connect override
procedure Client_Connect(const aHost: string; const aPort: Integer; aSSL: Boolean)
Parameters:
- aHost:
- aPort:
- aSSL:
Disconnect override
Called to disconnect the current connection.
procedure Disconnect
GetClientAddress override
Client addrerss
function GetClientAddress: string
IsConnected override
function IsConnected: Boolean
IsTimeoutError override
function IsTimeoutError: Boolean
ReadBuffer override
function ReadBuffer(var Data: ; Len: Integer): Integer
Parameters:
- Data:
- Len:
ReadByte override
function ReadByte: Byte
ReadInteger override
function ReadInteger: Integer
ReadString override
function ReadString(const aLen: Integer): ROAnsiString
Parameters:
- aLen:
SetNagle override
Controls whether data packets are sent individually or if small packets are held back to send as part of fewer larger data packets. Normally, you will want this disabled as it can have a significant effect on performance. The only time when its worth keeping the property enabled is when there are many small packets to be sent and you need to keep network bandwidth to a minimum.
See more at Nagle's algorithm
procedure SetNagle
TryReadByte override
function TryReadByte(var aValue: Byte): Boolean
Parameters:
- aValue:
WriteBuffer override
procedure WriteBuffer(const Data: ; Len: Integer)
Parameters:
- Data:
- Len:
WriteByte override
procedure WriteByte(const aValue: Byte)
Parameters:
- aValue:
WriteInteger override
procedure WriteInteger(const aValue: Integer)
Parameters:
- aValue:
WriteString override
procedure WriteString(const aValue: ROAnsiString)
Parameters:
- aValue: