TTCPBlockSocket

unit TCP; Модуль для работы с TCP соединением. Вы можете быть как клиентом так и сервером. Подробное описание класса можно найти в оф. документации

Name Result Description Code Params Examples
Create - Class constructor
constructor Create;
There are no arguments Examples not found
Destroy - Class destructor
destructor Destroy; override;
There are no arguments Examples not found
CloseSocket -
procedure CloseSocket; override;
There are no arguments Examples not found
WaitingData Integer
function WaitingData: Integer; override;
There are no arguments Examples not found
Listen -
procedure Listen; override;
There are no arguments Examples not found
Accept Integer
function Accept: Integer; override;
There are no arguments Examples not found
Connect -
procedure Connect(IP, Port: string); override;
There are no arguments Examples not found
SendBuffer Integer
function SendBuffer(Buffer: pointer; Len: integer): Integer; override;
There are no arguments Examples not found
RecvBuffer Integer
function RecvBuffer(Buffer: pointer; Len: integer; Timeout: integer): Integer; virtual;
There are no arguments Examples not found
SendByte -
procedure SendByte(Data: byte); virtual;
There are no arguments Examples not found
RecvByte Byte
function RecvByte(Timeout: integer): Byte; virtual;
There are no arguments Examples not found
SendString -
procedure SendString(Data: ansistring); virtual;
There are no arguments Examples not found
RecvString AnsiString
function RecvString(Timeout: integer): AnsiString; virtual;
There are no arguments Examples not found
SendInteger -
procedure SendInteger(Data: integer); virtual;
There are no arguments Examples not found
RecvInteger Integer
function RecvInteger(Timeout: integer): Integer;
There are no arguments Examples not found
LastError Integer
property LastError: Integer;
There are no arguments Examples not found