Difference between revisions of "TSocketList"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit Transport __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible m...")
 
(No difference)

Latest revision as of 05:40, 30 May 2018

Return to Unit Transport


Description


To be documented

Class definitions



TSocketList = class(TObject)

Note: For tracking Sockets belonging to a List (eg AcceptQueue)
 
constructor Create;  
destructor Destroy; override;  
private
FLock:TCriticalSectionHandle;  
protected
FList:TList;  
 
procedure RemoveListItems;  
function GetCount:Integer;  
function GetItem(AIndex:Integer):TTransportSocket;  
procedure SetItem(AIndex:Integer; AItem:TTransportSocket);  
public
property Count:Integer read GetCount;  
property Items[Index:Integer]:TTransportSocket read GetItem write SetItem;  
 
function Add(ASocket:TTransportSocket):Integer;  
function Remove(ASocket:TTransportSocket):Integer;  
function First:TTransportSocket;  
function Last:TTransportSocket;  
procedure ClearList;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  


Function declarations



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


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


procedure TSocketList.RemoveListItems;
Description: To be documented
Note None documented


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


function TSocketList.GetItem(AIndex:Integer):TTransportSocket;
Description: To be documented
Note None documented


procedure TSocketList.SetItem(AIndex:Integer; AItem:TTransportSocket);
Description: To be documented
Note None documented


function TSocketList.Add(ASocket:TTransportSocket):Integer;
Description: To be documented
Note None documented


function TSocketList.Remove(ASocket:TTransportSocket):Integer;
Description: To be documented
Note None documented


function TSocketList.First:TTransportSocket;
Description: To be documented
Note None documented


function TSocketList.Last:TTransportSocket;
Description: To be documented
Note None documented


procedure TSocketList.ClearList;
Description: To be documented
Note None documented


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


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


Return to Unit Reference