Difference between revisions of "TSocketOptions"

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:44, 30 May 2018

Return to Unit Transport


Description


To be documented

Class definitions



TSocketOptions = class(TObject)

Note: For Get/Set Options Level = SOL_SOCKET Option = SO_KEEPALIVE, SO_ACCEPTCONN, SO_BROADCAST etc
 
constructor Create;  
destructor Destroy; override;  
private
FLock:TCriticalSectionHandle;  
protected
FOptions:LongWord;  
 
FLinger:TLinger;  
FSendBuffer:Integer;  
FRecvBuffer:Integer;  
FSendLowMark:Integer;  
FRecvLowMark:Integer;  
FSendTimeout:LongWord;  
FRecvTimeout:LongWord;  
FConnTimeout:LongWord;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
 
procedure SetLinger(const ALinger:TLinger);  
procedure SetSendBuffer(ASendBuffer:Integer);  
procedure SetRecvBuffer(ARecvBuffer:Integer);  
procedure SetSendLowMark(ASendLowMark:Integer);  
procedure SetRecvLowMark(ARecvLowMark:Integer);  
procedure SetSendTimeout(ASendTimeout:LongWord);  
procedure SetRecvTimeout(ARecvTimeout:LongWord);  
procedure SetConnTimeout(AConnTimeout:LongWord);  
 
function GetDebug:Boolean;  
procedure SetDebug(ADebug:Boolean);  
function GetAccept:Boolean;  
procedure SetAccept(AAccept:Boolean);  
function GetReuseAddress:Boolean;  
procedure SetReuseAddress(AReuseAddress:Boolean);  
function GetKeepAlive:Boolean;  
procedure SetKeepAlive(AKeepAlive:Boolean);  
function GetDontRoute:Boolean;  
procedure SetDontRoute(ADontRoute:Boolean);  
function GetBroadcast:Boolean;  
procedure SetBroadcast(ABroadcast:Boolean);  
function GetUseLoopback:Boolean;  
procedure SetUseLoopback(AUseLoopback:Boolean);  
function GetUrgentInline:Boolean;  
procedure SetUrgentInline(AUrgentInline:Boolean);  
public
property Linger:TLinger read FLinger write SetLinger;  
property SendBuffer:Integer read FSendBuffer write SetSendBuffer;  
property RecvBuffer:Integer read FRecvBuffer write SetRecvBuffer;  
property SendLowMark:Integer read FSendLowMark write SetSendLowMark;  
property RecvLowMark:Integer read FRecvLowMark write SetRecvLowMark;  
property SendTimeout:LongWord read FSendTimeout write SetSendTimeout;  
property RecvTimeout:LongWord read FRecvTimeout write SetRecvTimeout;  
property ConnTimeout:LongWord read FConnTimeout write SetConnTimeout;  
 
property Debug:Boolean read GetDebug write SetDebug;  
property Accept:Boolean read GetAccept write SetAccept;  
property ReuseAddress:Boolean read GetReuseAddress write SetReuseAddress;  
property KeepAlive:Boolean read GetKeepAlive write SetKeepAlive;  
property DontRoute:Boolean read GetDontRoute write SetDontRoute;  
property Broadcast:Boolean read GetBroadcast write SetBroadcast;  
property UseLoopback:Boolean read GetUseLoopback write SetUseLoopback;  
property UrgentInline:Boolean read GetUrgentInline write SetUrgentInline;  


Function declarations



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


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


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


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


procedure TSocketOptions.SetLinger(const ALinger:TLinger);
Description: To be documented
Note None documented


procedure TSocketOptions.SetSendBuffer(ASendBuffer:Integer);
Description: To be documented
Note None documented


procedure TSocketOptions.SetRecvBuffer(ARecvBuffer:Integer);
Description: To be documented
Note None documented


procedure TSocketOptions.SetSendLowMark(ASendLowMark:Integer);
Description: To be documented
Note None documented


procedure TSocketOptions.SetRecvLowMark(ARecvLowMark:Integer);
Description: To be documented
Note None documented


procedure TSocketOptions.SetSendTimeout(ASendTimeout:LongWord);
Description: To be documented
Note None documented


procedure TSocketOptions.SetRecvTimeout(ARecvTimeout:LongWord);
Description: To be documented
Note None documented


procedure TSocketOptions.SetConnTimeout(AConnTimeout:LongWord);
Description: To be documented
Note None documented


function TSocketOptions.GetDebug:Boolean;
Description: To be documented
Note None documented


procedure TSocketOptions.SetDebug(ADebug:Boolean);
Description: To be documented
Note None documented


function TSocketOptions.GetAccept:Boolean;
Description: To be documented
Note None documented


procedure TSocketOptions.SetAccept(AAccept:Boolean);
Description: To be documented
Note None documented


function TSocketOptions.GetReuseAddress:Boolean;
Description: To be documented
Note None documented


procedure TSocketOptions.SetReuseAddress(AReuseAddress:Boolean);
Description: To be documented
Note None documented


function TSocketOptions.GetKeepAlive:Boolean;
Description: To be documented
Note None documented


procedure TSocketOptions.SetKeepAlive(AKeepAlive:Boolean);
Description: To be documented
Note None documented


function TSocketOptions.GetDontRoute:Boolean;
Description: To be documented
Note None documented


procedure TSocketOptions.SetDontRoute(ADontRoute:Boolean);
Description: To be documented
Note None documented


function TSocketOptions.GetBroadcast:Boolean;
Description: To be documented
Note None documented


procedure TSocketOptions.SetBroadcast(ABroadcast:Boolean);
Description: To be documented
Note None documented


function TSocketOptions.GetUseLoopback:Boolean;
Description: To be documented
Note None documented


procedure TSocketOptions.SetUseLoopback(AUseLoopback:Boolean);
Description: To be documented
Note None documented


function TSocketOptions.GetUrgentInline:Boolean;
Description: To be documented
Note None documented


procedure TSocketOptions.SetUrgentInline(AUrgentInline:Boolean);
Description: To be documented
Note None documented


Return to Unit Reference