TWinsock2TCPSocket

From Ultibo.org
Jump to: navigation, search

Return to Unit Winsock2


Description


To be documented

Class definitions



TWinsock2TCPSocket = class(TWinsock2Socket)

Note: Stream Socket (SOCK_STREAM) classes
 
public
constructor Create;  
private
FUseNagle:Boolean;  
FUseKeepalive:Boolean;  
FSegmentSize:Integer;  
 
procedure SetSocketType(ASocketType:Integer); override;  
procedure SetProtocol(AProtocol:Integer); override;  
 
procedure SetBacklog(ABacklog:Integer);  
 
procedure SetUseNagle(AUseNagle:Boolean);  
procedure SetUseKeepalive(AUseKeepalive:Boolean);  
procedure SetSegmentSize(ASegmentSize:Integer);  
function GetMaxSegmentSize:LongWord;  
procedure SetMaxSegmentSize(AMaxSegmentSize:LongWord);  
protected
FBacklog:Integer;  
FMaxSegmentSize:LongWord;  
 
function Listen(ABacklog:Integer):LongInt;  
 
function ReadFromSocket(AData:Pointer; ASize:Integer):LongInt;  
function WriteToSocket(AData:Pointer; ASize:Integer):LongInt;  
 
function ReadFromSocketEx(AData:Pointer; ASize:Integer; var ACount:Integer; var AClosed:Boolean; AWait:Boolean; ATimeout:Integer):LongInt;  
function WriteToSocketEx(AData:Pointer; ASize:Integer; var ACount:Integer; AWait:Boolean; ATimeout:Integer):LongInt;  
public
property Backlog:Integer read FBacklog write SetBacklog;  
 
property UseNagle:Boolean read FUseNagle write SetUseNagle;  
property UseKeepalive:Boolean read FUseKeepalive write SetUseKeepalive;  
property SegmentSize:Integer read FSegmentSize write SetSegmentSize;  
property MaxSegmentSize:LongWord read GetMaxSegmentSize write SetMaxSegmentSize;  
 
function ReadData(AData:Pointer; ACount:Integer):Boolean;  
function WriteData(AData:Pointer; ACount:Integer):Boolean;  
 
function ReadAvailable(AData:Pointer; ASize:Integer; var ACount:Integer; var AClosed:Boolean):Boolean;  


Function declarations



constructor TWinsock2TCPSocket.Create;
Description: To be documented
Note None documented


procedure TWinsock2TCPSocket.SetSocketType(ASocketType:Integer);
Description: To be documented
Note None documented


procedure TWinsock2TCPSocket.SetProtocol(AProtocol:Integer);
Description: To be documented
Note None documented


procedure TWinsock2TCPSocket.SetBacklog(ABacklog:Integer);
Description: To be documented
Note None documented


procedure TWinsock2TCPSocket.SetUseNagle(AUseNagle:Boolean);
Description: To be documented
Note None documented


procedure TWinsock2TCPSocket.SetUseKeepalive(AUseKeepalive:Boolean);
Description: To be documented
Note None documented


procedure TWinsock2TCPSocket.SetSegmentSize(ASegmentSize:Integer);
Description: To be documented
Note None documented


procedure TWinsock2TCPSocket.GetMaxSegmentSize:LongWord;
Description: To be documented
Note None documented


procedure TWinsock2TCPSocket.MaxSegmentSize:LongWord read GetMaxSegmentSize write SetMaxSegmentSize;
Description: To be documented
Note None documented


function TWinsock2TCPSocket.Listen(ABacklog:Integer):LongInt;
Description: To be documented
Note None documented


function TWinsock2TCPSocket.ReadFromSocket(AData:Pointer; ASize:Integer):LongInt;
Description: To be documented
Note None documented


function TWinsock2TCPSocket.WriteToSocket(AData:Pointer; ASize:Integer):LongInt;
Description: To be documented
Note None documented


function TWinsock2TCPSocket.ReadFromSocketEx(AData:Pointer; ASize:Integer; var ACount:Integer; var AClosed:Boolean; AWait:Boolean; ATimeout:Integer):LongInt;
Description: To be documented
Note None documented


function TWinsock2TCPSocket.WriteToSocketEx(AData:Pointer; ASize:Integer; var ACount:Integer; AWait:Boolean; ATimeout:Integer):LongInt;
Description: To be documented
Note None documented


function TWinsock2TCPSocket.ReadData(AData:Pointer; ACount:Integer):Boolean;
Description: To be documented
Note None documented


function TWinsock2TCPSocket.WriteData(AData:Pointer; ACount:Integer):Boolean;
Description: To be documented
Note None documented


function TWinsock2TCPSocket.ReadAvailable(AData:Pointer; ASize:Integer; var ACount:Integer; var AClosed:Boolean):Boolean;
Description: To be documented
Note None documented


Return to Unit Reference