TWinsock2TCPServer

From Ultibo.org
Revision as of 04:56, 6 November 2025 by Ultibo (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Return to Unit Winsock2


Description


To be documented

Class definitions



TWinsock2TCPServer = class(TWinsock2TCPSocket)

Note: Stream Server classes
 
public
constructor Create(AListener:TWinsock2TCPListener);  
private
FPeerPort:Word;  
FPeerAddress:String;  
 
FLastReadTime:Int64;  
FLastWriteTime:Int64;  
 
FListener:TWinsock2TCPListener;  
protected
procedure SetHandle(AHandle:TSocket); virtual;  
procedure SetLastError(ALastError:LongInt); virtual;  
public
property PeerPort:Word read FPeerPort;  
property PeerAddress:String read FPeerAddress;  
 
property LastReadTime:Int64 read FLastReadTime;  
property LastWriteTime:Int64 read FLastWriteTime;  
 
property Listener:TWinsock2TCPListener read FListener;  
 
function Disconnect:Boolean; override;  
 
function ReadData(AData:Pointer; ACount:Integer):Boolean; override;  
function WriteData(AData:Pointer; ACount:Integer):Boolean; override;  
 
function ReadAvailable(AData:Pointer; ASize:Integer; var ACount:Integer; var AClosed:Boolean):Boolean; override;  


Function declarations



constructor TWinsock2TCPServer.Create(AListener:TWinsock2TCPListener);
Description: To be documented
Note None documented


procedure TWinsock2TCPServer.SetHandle(AHandle:TSocket);
Description: To be documented
Note None documented


procedure TWinsock2TCPServer.SetLastError(ALastError:LongInt);
Description: To be documented
Note None documented


function TWinsock2TCPServer.Disconnect:Boolean;
Description: To be documented
Note None documented


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


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


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


Return to Unit Reference