TNetworkMonitor

From Ultibo.org
Jump to: navigation, search

Return to Unit Transport


Description


To be documented

Class definitions



TNetworkMonitor = class(TListObject)

Note: eg Packet Capture
 
constructor Create(AManager:TTransportManager);  
destructor Destroy; override;  
private
FLock:TSynchronizerHandle;  
protected
FManager:TTransportManager;  
 
FAdapters:TNetworkList; List of TMonitorAdapter objects
public
property Manager:TTransportManager read FManager;  
 
function ReaderLock:Boolean;  
function ReaderUnlock:Boolean;  
function WriterLock:Boolean;  
function WriterUnlock:Boolean;  
 
function GetAdapterByHandle(AHandle:THandle; ALock:Boolean; AState:LongWord):TMonitorAdapter;  
function GetAdapterByAdapter(AAdapter:TNetworkAdapter; ALock:Boolean; AState:LongWord):TMonitorAdapter;  
function GetAdapterByNext(APrevious:TMonitorAdapter; ALock,AUnlock:Boolean; AState:LongWord):TMonitorAdapter;  
 
function AddAdapter(AAdapter:TNetworkAdapter):Boolean; virtual;  
function RemoveAdapter(AAdapter:TNetworkAdapter):Boolean; virtual;  
 
function StartMonitor:Boolean; virtual;  
function StopMonitor:Boolean; virtual;  
function ProcessMonitor:Boolean; virtual;  
 
function BindMonitor(AAdapter:TNetworkAdapter):Boolean; virtual;  
function UnbindMonitor(AAdapter:TNetworkAdapter):Boolean; virtual;  


Function declarations



constructor TNetworkMonitor.Create(AManager:TTransportManager);
Description: To be documented
Note None documented


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


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


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


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


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


function TNetworkMonitor.GetAdapterByHandle(AHandle:THandle; ALock:Boolean; AState:LongWord):TMonitorAdapter;
Description: To be documented
Note None documented


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


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


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


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


function TNetworkMonitor.StartMonitor:Boolean;
Description: To be documented
Note None documented


function TNetworkMonitor.StopMonitor:Boolean;
Description: To be documented
Note None documented


function TNetworkMonitor.ProcessMonitor:Boolean;
Description: To be documented
Note None documented


function TNetworkMonitor.BindMonitor(AAdapter:TNetworkAdapter):Boolean;
Description: To be documented
Note None documented


function TNetworkMonitor.UnbindMonitor(AAdapter:TNetworkAdapter):Boolean;
Description: To be documented
Note None documented


Return to Unit Reference