Difference between revisions of "TWinsock2TCPSocket"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit Winsock2 __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-...")
 
 
Line 37: Line 37:
 
|-
 
|-
 
| <code>FSegmentSize:Integer;</code>
 
| <code>FSegmentSize:Integer;</code>
| &nbsp;
 
|-
 
| <code>FMaxSegmentSize:LongWord;</code>
 
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 64: Line 61:
 
|-
 
|-
 
| <code>procedure SetSegmentSize(ASegmentSize:Integer);</code>
 
| <code>procedure SetSegmentSize(ASegmentSize:Integer);</code>
 +
| &nbsp;
 +
|-
 +
| <code>function GetMaxSegmentSize:LongWord;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 72: Line 72:
 
|-
 
|-
 
| <code>FBacklog:Integer;</code>
 
| <code>FBacklog:Integer;</code>
 +
| &nbsp;
 +
|-
 +
| <code>FMaxSegmentSize:LongWord;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 111: Line 114:
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
| <code>property MaxSegmentSize:LongWord read FMaxSegmentSize write SetMaxSegmentSize;</code>
+
| <code>property MaxSegmentSize:LongWord read GetMaxSegmentSize write SetMaxSegmentSize;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 220: Line 223:
 
<br />
 
<br />
 
<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;">procedure TWinsock2TCPSocket.SetMaxSegmentSize(AMaxSegmentSize:LongWord);</pre>
+
<pre style="border: 0; padding-bottom:0px;">procedure TWinsock2TCPSocket.GetMaxSegmentSize:LongWord;</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;">procedure TWinsock2TCPSocket.MaxSegmentSize:LongWord read GetMaxSegmentSize write SetMaxSegmentSize;</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:37, 23 March 2023

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