TAdapterManager

From Ultibo.org
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