TAdapterManager

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

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

Return to Unit Network


Description


To be documented

Class definitions



TAdapterManager = class(TObject)

constructor Create(ASettings:TNetworkSettings);  
destructor Destroy; override;  
private
FLock:TSynchronizerHandle;  
FSettings:TNetworkSettings;  
 
FAdapters:TNetworkList; List of TNetworkAdapter objects
 
function ReaderLock:Boolean;  
function ReaderUnlock:Boolean;  
function WriterLock:Boolean;  
function WriterUnlock:Boolean;  
public
property Settings:TNetworkSettings read FSettings;  
 
function AddAdapter(AAdapter:TNetworkAdapter):Boolean;  
function RemoveAdapter(AAdapter:TNetworkAdapter):Boolean;  
 
function GetAdapterByName(const AName:String; ALock:Boolean; AState:LongWord):TNetworkAdapter;  
function GetAdapterByType(AAdapterType:Word; ALock:Boolean; AState:LongWord):TNetworkAdapter;  
function GetAdapterByDevice(ADevice:PNetworkDevice; ALock:Boolean; AState:LongWord):TNetworkAdapter;  
function GetAdapterByAdapter(AAdapter:TNetworkAdapter; ALock:Boolean; AState:LongWord):TNetworkAdapter;  
function GetAdapterByNext(APrevious:TNetworkAdapter; ALock,AUnlock:Boolean; AState:LongWord):TNetworkAdapter;  
 
function StartAdapters:Boolean;  
function StopAdapters:Boolean;  
function ProcessStatus:Boolean;  
function ProcessAdapters:Boolean;  
 
function EnumerateAdapters(ACallback:TAdapterCallback):Boolean;  


Function declarations



constructor TAdapterManager.Create(ASettings:TNetworkSettings);
Description: To be documented
Note None documented


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


function TAdapterManager.ReaderLock:Boolean;
Description: To be documented
Note None documented


function TAdapterManager.ReaderUnlock:Boolean;
Description: To be documented
Note None documented


function TAdapterManager.WriterLock:Boolean;
Description: To be documented
Note None documented


function TAdapterManager.WriterUnlock:Boolean;
Description: To be documented
Note None documented


function TAdapterManager.AddAdapter(AAdapter:TNetworkAdapter):Boolean;
Description: To be documented
Note None documented


function TAdapterManager.RemoveAdapter(AAdapter:TNetworkAdapter):Boolean;
Description: To be documented
Note None documented


function TAdapterManager.GetAdapterByName(const AName:String; ALock:Boolean; AState:LongWord):TNetworkAdapter;
Description: To be documented
Note None documented


function TAdapterManager.GetAdapterByType(AAdapterType:Word; ALock:Boolean; AState:LongWord):TNetworkAdapter;
Description: To be documented
Note None documented


function TAdapterManager.GetAdapterByDevice(ADevice:PNetworkDevice; ALock:Boolean; AState:LongWord):TNetworkAdapter;
Description: To be documented
Note None documented


function TAdapterManager.GetAdapterByAdapter(AAdapter:TNetworkAdapter; ALock:Boolean; AState:LongWord):TNetworkAdapter;
Description: To be documented
Note None documented


function TAdapterManager.GetAdapterByNext(APrevious:TNetworkAdapter; ALock,AUnlock:Boolean; AState:LongWord):TNetworkAdapter;
Description: To be documented
Note None documented


function TAdapterManager.StartAdapters:Boolean;
Description: To be documented
Note None documented


function TAdapterManager.StopAdapters:Boolean;
Description: To be documented
Note None documented


function TAdapterManager.ProcessStatus:Boolean;
Description: To be documented
Note None documented


function TAdapterManager.EnumerateAdapters(ACallback:TAdapterCallback):Boolean;
Description: To be documented
Note None documented


Return to Unit Reference