Difference between revisions of "TWinsock2TCPServer"
From Ultibo.org
(Created page with "Return to Unit Winsock2 __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-...") |
|||
| Line 34: | Line 34: | ||
|- | |- | ||
| <code>FPeerAddress:String;</code> | | <code>FPeerAddress:String;</code> | ||
| + | | | ||
| + | |- | ||
| + | |colspan="2"| | ||
| + | |- | ||
| + | | <code>FLastReadTime:Int64;</code> | ||
| + | | | ||
| + | |- | ||
| + | | <code>FLastWriteTime:Int64;</code> | ||
| | | | ||
|- | |- | ||
| Line 56: | Line 64: | ||
| <code>property PeerAddress:String read FPeerAddress;</code> | | <code>property PeerAddress:String read FPeerAddress;</code> | ||
| | | | ||
| + | |- | ||
| + | |colspan="2"| | ||
| + | |- | ||
| + | | <code>property LastReadTime:Int64 read FLastReadTime;</code> | ||
| + | | | ||
| + | |- | ||
| + | | <code>property LastWriteTime:Int64 read FLastWriteTime;</code> | ||
| + | | | ||
| + | |- | ||
| + | |colspan="2"| | ||
|- | |- | ||
| <code>property Listener:TWinsock2TCPListener read FListener;</code> | | <code>property Listener:TWinsock2TCPListener read FListener;</code> | ||
| Line 63: | Line 81: | ||
|- | |- | ||
| <code>function Disconnect:Boolean; override;</code> | | <code>function Disconnect:Boolean; override;</code> | ||
| + | | | ||
| + | |- | ||
| + | |colspan="2"| | ||
| + | |- | ||
| + | | <code>function ReadData(AData:Pointer; ACount:Integer):Boolean; override;</code> | ||
| + | | | ||
| + | |- | ||
| + | | <code>function WriteData(AData:Pointer; ACount:Integer):Boolean; override;</code> | ||
| + | | | ||
| + | |- | ||
| + | |colspan="2"| | ||
| + | |- | ||
| + | | <code>function ReadAvailable(AData:Pointer; ASize:Integer; var ACount:Integer; var AClosed:Boolean):Boolean; override;</code> | ||
| | | | ||
|- | |- | ||
| Line 111: | Line 142: | ||
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
<pre style="border: 0; padding-bottom:0px;">function TWinsock2TCPServer.Disconnect:Boolean;</pre> | <pre style="border: 0; padding-bottom:0px;">function TWinsock2TCPServer.Disconnect:Boolean;</pre> | ||
| + | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;" | ||
| + | |- | ||
| + | ! Note | ||
| + | | None documented | ||
| + | |- | ||
| + | |} | ||
| + | </div></div> | ||
| + | <br /> | ||
| + | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
| + | <pre style="border: 0; padding-bottom:0px;">function TWinsock2TCPServer.ReadData(AData:Pointer; ACount:Integer):Boolean;</pre> | ||
| + | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;" | ||
| + | |- | ||
| + | ! Note | ||
| + | | None documented | ||
| + | |- | ||
| + | |} | ||
| + | </div></div> | ||
| + | <br /> | ||
| + | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
| + | <pre style="border: 0; padding-bottom:0px;">function TWinsock2TCPServer.WriteData(AData:Pointer; ACount:Integer):Boolean;</pre> | ||
| + | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
| + | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
| + | {| class="wikitable" style="font-size: 14px; background: white;" | ||
| + | |- | ||
| + | ! Note | ||
| + | | None documented | ||
| + | |- | ||
| + | |} | ||
| + | </div></div> | ||
| + | <br /> | ||
| + | <div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;"> | ||
| + | <pre style="border: 0; padding-bottom:0px;">function TWinsock2TCPServer.ReadAvailable(AData:Pointer; ASize:Integer; var ACount:Integer; var AClosed:Boolean):Boolean;</pre> | ||
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | <div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div> | ||
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | <div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;"> | ||
Latest revision as of 04:56, 6 November 2025
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