TSocketState

From Ultibo.org
Revision as of 05:41, 30 May 2018 by Ultibo (Talk | contribs) (Created page with "Return to Unit Transport __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible m...")

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

Return to Unit Transport


Description


To be documented

Class definitions



TSocketState = class(TObject)

Note: For Socket State tracking SS_UNCONNECTED, SS_PRIV etc
 
constructor Create;  
destructor Destroy; override;  
private
FLock:TCriticalSectionHandle;  
protected
FState:LongWord;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
 
function GetUnconnected:Boolean;  
procedure SetUnconnected(AUnconnected:Boolean);  
function GetConnected:Boolean;  
procedure SetConnected(AConnected:Boolean);  
function GetConnecting:Boolean;  
procedure SetConnecting(AConnecting:Boolean);  
function GetDisconnecting:Boolean;  
procedure SetDisconnecting(ADisconnecting:Boolean);  
function GetCantSendMore:Boolean;  
procedure SetCantSendMore(ACantSendMore:Boolean);  
function GetCantRecvMore:Boolean;  
procedure SetCantRecvMore(ACantRecvMore:Boolean);  
function GetRecvAtMark:Boolean;  
procedure SetRecvAtMark(ARecvAtMark:Boolean);  
 
function GetPrivileged:Boolean;  
procedure SetPrivileged(APrivileged:Boolean);  
function GetNonBlocking:Boolean;  
procedure SetNonBlocking(ANonBlocking:Boolean);  
function GetAsync:Boolean;  
procedure SetAsync(AAsync:Boolean);  
function GetListening:Boolean;  
procedure SetListening(AListening:Boolean);  
 
function GetLocalAddress:Boolean;  
procedure SetLocalAddress(ALocalAddress:Boolean);  
function GetRemoteAddress:Boolean;  
procedure SetRemoteAddress(ARemoteAddress:Boolean);  
function GetConnRefused:Boolean;  
procedure SetConnRefused(AConnRefused:Boolean);  
function GetClosed:Boolean;  
procedure SetClosed(AClosed:Boolean);  
public
property Unconnected:Boolean read GetUnconnected write SetUnconnected;  
property Connected:Boolean read GetConnected write SetConnected;  
property Connecting:Boolean read GetConnecting write SetConnecting;  
property Disconnecting:Boolean read GetDisconnecting write SetDisconnecting;  
property CantSendMore:Boolean read GetCantSendMore write SetCantSendMore;  
property CantRecvMore:Boolean read GetCantRecvMore write SetCantRecvMore;  
property RecvAtMark:Boolean read GetRecvAtMark write SetRecvAtMark;  
 
property Privileged:Boolean read GetPrivileged write SetPrivileged;  
property NonBlocking:Boolean read GetNonBlocking write SetNonBlocking;  
property Async:Boolean read GetAsync write SetAsync;  
property Listening:Boolean read GetListening write SetListening;  
 
property LocalAddress:Boolean read GetLocalAddress write SetLocalAddress;  
property RemoteAddress:Boolean read GetRemoteAddress write SetRemoteAddress;  
property ConnRefused:Boolean read GetConnRefused write SetConnRefused;  
property Closed:Boolean read GetClosed write SetClosed;  


Function declarations



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


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


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


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


function TSocketState.GetUnconnected:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetUnconnected(AUnconnected:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetConnected:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetConnected(AConnected:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetConnecting:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetConnecting(AConnecting:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetDisconnecting:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetDisconnecting(ADisconnecting:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetCantSendMore:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetCantSendMore(ACantSendMore:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetCantRecvMore:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetCantRecvMore(ACantRecvMore:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetRecvAtMark:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetRecvAtMark(ARecvAtMark:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetPrivileged:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetPrivileged(APrivileged:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetNonBlocking:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetNonBlocking(ANonBlocking:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetAsync:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetAsync(AAsync:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetListening:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetListening(AListening:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetLocalAddress:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetLocalAddress(ALocalAddress:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetRemoteAddress:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetRemoteAddress(ARemoteAddress:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetConnRefused:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetConnRefused(AConnRefused:Boolean);
Description: To be documented
Note None documented


function TSocketState.GetClosed:Boolean;
Description: To be documented
Note None documented


procedure TSocketState.SetClosed(AClosed:Boolean);
Description: To be documented
Note None documented


Return to Unit Reference