TWinsock2SocketThreads

From Ultibo.org
Revision as of 04:07, 6 June 2018 by Ultibo (Talk | contribs) (Created page with "Return to Unit Winsock2 __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-...")

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

Return to Unit Winsock2


Description


To be documented

Class definitions



TWinsock2SocketThreads = class(TObject)

public
constructor Create;  
destructor Destroy; override;  
private
FLock:TCriticalSectionHandle;  
 
FCount:Integer;  
FFirst:TWinsock2SocketThread;  
FLast:TWinsock2SocketThread;  
 
function GetCount:Integer;  
function GetFirst:TWinsock2SocketThread;  
function GetLast:TWinsock2SocketThread;  
function Link(AValue:TWinsock2SocketThread):Boolean;  
function LinkEx(APrev,AValue:TWinsock2SocketThread):Boolean;  
function Unlink(AValue:TWinsock2SocketThread):Boolean;  
protected
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
public
property Count:Integer read GetCount;  
property First:TWinsock2SocketThread read GetFirst;  
property Last:TWinsock2SocketThread read GetLast;  
function Add(AValue:TWinsock2SocketThread):Boolean; virtual;  
function Remove(AValue:TWinsock2SocketThread):Boolean; virtual;  
function Insert(APrev,AValue:TWinsock2SocketThread):Boolean; virtual;  
function Find(AValue:TWinsock2SocketThread):Boolean; virtual;  
function FindByID(AThreadID:TThreadID):TWinsock2SocketThread; virtual;  
procedure Clear; virtual;  


Function declarations



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


destructor TWinsock2SocketThreads.Destroy;
Description: To be documented
Note None documented


function TWinsock2SocketThreads.GetCount:Integer;
Description: To be documented
Note None documented


function TWinsock2SocketThreads.GetFirst:TWinsock2SocketThread;
Description: To be documented
Note None documented


function TWinsock2SocketThreads.GetLast:TWinsock2SocketThread;
Description: To be documented
Note None documented


function TWinsock2SocketThreads.Link(AValue:TWinsock2SocketThread):Boolean;
Description: Link AValue to Prev,Next Siblings and Adjust First/Last
Note None documented


function TWinsock2SocketThreads.LinkEx(APrev,AValue:TWinsock2SocketThread):Boolean;
Description: Link AValue after APrev Sibling and Adjust First/Last/Prev/Next
Note If APrev is nil then Link as first value in list


function TWinsock2SocketThreads.Unlink(AValue:TWinsock2SocketThread):Boolean;
Description: Unlink AValue from Prev,Next Siblings and Adjust First/Last
Note None documented


function TWinsock2SocketThreads.AcquireLock:Boolean;
Description: To be documented
Note None documented


function TWinsock2SocketThreads.ReleaseLock:Boolean;
Description: To be documented
Note None documented


function TWinsock2SocketThreads.Add(AValue:TWinsock2SocketThread):Boolean;
Description: Add AValue to List and link with Siblings
Note None documented


function TWinsock2SocketThreads.Remove(AValue:TWinsock2SocketThread):Boolean;
Description: Unlink AValue from Siblings and Remove from List
Note None documented


function TWinsock2SocketThreads.Insert(APrev,AValue:TWinsock2SocketThread):Boolean;
Description: To be documented
Note None documented


function TWinsock2SocketThreads.Find(AValue:TWinsock2SocketThread):Boolean;
Description: To be documented
Note None documented


function TWinsock2SocketThreads.FindByID(AThreadID:TThreadID):TWinsock2SocketThread;
Description: To be documented
Note None documented


procedure TWinsock2SocketThreads.Clear;
Description: To be documented
Note None documented


Return to Unit Reference