TNetworkFilter

From Ultibo.org
Jump to: navigation, search

Return to Unit Protocol


Description


To be documented

Class definitions



TNetworkFilter = class(TListObject)

Note: eg IP Filter
 
constructor Create(AManager:TProtocolManager);  
destructor Destroy; override;  
private
FLock:TSynchronizerHandle;  
protected
FManager:TProtocolManager;  
 
FProtocol:Word;  
FTransports:TNetworkList; List of TFilterTransport objects
public
property Manager:TProtocolManager read FManager;  
property Protocol:Word read FProtocol;  
 
function ReaderLock:Boolean;  
function ReaderUnlock:Boolean;  
function WriterLock:Boolean;  
function WriterUnlock:Boolean;  
 
function GetTransportByHandle(AHandle:THandle; ALock:Boolean; AState:LongWord):TFilterTransport;  
function GetTransportByFamily(AFamily:Word; ALock:Boolean; AState:LongWord):TFilterTransport;  
function GetTransportByTransport(ATransport:TNetworkTransport; ALock:Boolean; AState:LongWord):TFilterTransport;  
function GetTransportByNext(APrevious:TFilterTransport; ALock,AUnlock:Boolean; AState:LongWord):TFilterTransport;  
 
function AddTransport(ATransport:TNetworkTransport):Boolean; virtual;  
function RemoveTransport(ATransport:TNetworkTransport):Boolean; virtual;  
 
function StartFilter:Boolean; virtual;  
function StopFilter:Boolean; virtual;  
function ProcessFilter:Boolean; virtual;  
 
function BindFilter(ATransport:TNetworkTransport):Boolean; virtual;  
function UnbindFilter(ATransport:TNetworkTransport):Boolean; virtual;  


Function declarations



constructor TNetworkFilter.Create(AManager:TProtocolManager);
Description: To be documented
Note None documented


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


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


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


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


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


function TNetworkFilter.GetTransportByHandle(AHandle:THandle; ALock:Boolean; AState:LongWord):TFilterTransport;
Description: To be documented
Note None documented


function TNetworkFilter.GetTransportByFamily(AFamily:Word; ALock:Boolean; AState:LongWord):TFilterTransport;
Description: To be documented
Note None documented


function TNetworkFilter.GetTransportByTransport(ATransport:TNetworkTransport; ALock:Boolean; AState:LongWord):TFilterTransport;
Description: To be documented
Note None documented


function TNetworkFilter.GetTransportByNext(APrevious:TFilterTransport; ALock,AUnlock:Boolean; AState:LongWord):TFilterTransport;
Description: To be documented
Note None documented


function TNetworkFilter.AddTransport(ATransport:TNetworkTransport):Boolean;
Description: To be documented
Note None documented


function TNetworkFilter.RemoveTransport(ATransport:TNetworkTransport):Boolean;
Description: To be documented
Note None documented


function TNetworkFilter.StartFilter:Boolean;
Description: To be documented
Note None documented


function TNetworkFilter.StopFilter:Boolean;
Description: To be documented
Note None documented


function TNetworkFilter.ProcessFilter:Boolean;
Description: To be documented
Note None documented


function TNetworkFilter.BindFilter(ATransport:TNetworkTransport):Boolean;
Description: To be documented
Note None documented


function TNetworkFilter.UnbindFilter(ATransport:TNetworkTransport):Boolean;
Description: To be documented
Note None documented


Return to Unit Reference