TTransportManager

From Ultibo.org
Revision as of 05:19, 30 May 2018 by Ultibo (Talk | contribs)

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

Return to Unit Transport


Description


To be documented

Class definitions



TTransportManager = class(TObject)

constructor Create(ASettings:TNetworkSettings; AAdapters:TAdapterManager);  
destructor Destroy; override;  
private
FLock:TSynchronizerHandle;  
FSettings:TNetworkSettings;  
FAdapters:TAdapterManager;  
 
FTransports:TNetworkList; List of TNetworkTransport objects
FMonitors:TNetworkList; List of TNetworkMonitor objects
FAuthenticators:TNetworkList; List of TNetworkAuthenticator objects
 
function ReaderLock:Boolean;  
function ReaderUnlock:Boolean;  
function WriterLock:Boolean;  
function WriterUnlock:Boolean;  
public
property Settings:TNetworkSettings read FSettings;  
property Adapters:TAdapterManager read FAdapters;  
 
function AddTransport(ATransport:TNetworkTransport):Boolean;  
function RemoveTransport(ATransport:TNetworkTransport):Boolean;  
 
function GetTransportByName(const AName:String; ALock:Boolean; AState:LongWord):TNetworkTransport;  
function GetTransportByType(AFamily,APacketType:Word; ALock:Boolean; AState:LongWord):TNetworkTransport;  
function GetTransportByTransport(ATransport:TNetworkTransport; ALock:Boolean; AState:LongWord):TNetworkTransport;  
function GetTransportByNext(APrevious:TNetworkTransport; ALock,AUnlock:Boolean; AState:LongWord):TNetworkTransport;  
 
function AddMonitor(AMonitor:TNetworkMonitor):Boolean;  
function RemoveMonitor(AMonitor:TNetworkMonitor):Boolean;  
 
function GetMonitorByMonitor(AMonitor:TNetworkMonitor; ALock:Boolean; AState:LongWord):TNetworkMonitor;  
function GetMonitorByNext(APrevious:TNetworkMonitor; ALock,AUnlock: Boolean; AState:LongWord):TNetworkMonitor;  
 
function AddAuthenticator(AAuthenticator:TNetworkAuthenticator):Boolean;  
function RemoveAuthenticator(AAuthenticator:TNetworkAuthenticator):Boolean;  
 
function GetAuthenticatorByType(AAuthType:Word; ALock:Boolean; AState:LongWord):TNetworkAuthenticator;  
function GetAuthenticatorByAuthenticator(AAuthenticator:TNetworkAuthenticator; ALock:Boolean; AState:LongWord):TNetworkAuthenticator;  
function GetAuthenticatorByNext(APrevious:TNetworkAuthenticator; ALock,AUnlock:Boolean; AState:LongWord):TNetworkAuthenticator;  
 
function StartTransports:Boolean;  
function StopTransports:Boolean;  
function ProcessTransports:Boolean;  
 
function EnumerateTransports(ACallback:TTransportCallback):Boolean;  
 
function BindTransports(AAdapter:TNetworkAdapter):Boolean;  
function UnbindTransports(AAdapter:TNetworkAdapter):Boolean;  
 
function StartMonitors:Boolean;  
function StopMonitors:Boolean;  
function ProcessMonitors:Boolean;  
 
function EnumerateMonitors(ACallback:TMonitorCallback):Boolean;  
 
function BindMonitors(AAdapter:TNetworkAdapter):Boolean;  
function UnbindMonitors(AAdapter:TNetworkAdapter):Boolean;  
 
function StartAuthenticators:Boolean;  
function StopAuthenticators:Boolean;  
function ProcessAuthenticators:Boolean;  
 
function EnumerateAuthenticators(ACallback:TAuthenticatorCallback):Boolean;  
 
function BindAuthenticators(AAdapter:TNetworkAdapter):Boolean;  
function UnbindAuthenticators(AAdapter:TNetworkAdapter):Boolean;  


Function declarations



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


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


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


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


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


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


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


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


function TTransportManager.GetTransportByName(const AName:String; ALock:Boolean; AState:LongWord):TNetworkTransport;
Description: To be documented
Note None documented


function TTransportManager.GetTransportByType(AFamily,APacketType:Word; ALock:Boolean; AState:LongWord):TNetworkTransport;
Description: To be documented
Note None documented


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


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


function TTransportManager.AddMonitor(AMonitor:TNetworkMonitor):Boolean;
Description: To be documented
Note None documented


function TTransportManager.RemoveMonitor(AMonitor:TNetworkMonitor):Boolean;
Description: To be documented
Note None documented


function TTransportManager.GetMonitorByMonitor(AMonitor:TNetworkMonitor; ALock:Boolean; AState:LongWord):TNetworkMonitor;
Description: To be documented
Note None documented


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


function TTransportManager.AddAuthenticator(AAuthenticator:TNetworkAuthenticator):Boolean;
Description: To be documented
Note None documented


function TTransportManager.RemoveAuthenticator(AAuthenticator:TNetworkAuthenticator):Boolean;
Description: To be documented
Note None documented


function TTransportManager.GetAuthenticatorByType(AAuthType:Word; ALock:Boolean; AState:LongWord):TNetworkAuthenticator;
Description: To be documented
Note None documented


function TTransportManager.GetAuthenticatorByAuthenticator(AAuthenticator:TNetworkAuthenticator; ALock:Boolean; AState:LongWord):TNetworkAuthenticator;
Description: To be documented
Note None documented


function TTransportManager.GetAuthenticatorByNext(APrevious:TNetworkAuthenticator; ALock,AUnlock:Boolean; AState:LongWord):TNetworkAuthenticator;
Description: To be documented
Note None documented


function TTransportManager.StartTransports:Boolean;
Description: To be documented
Note None documented


function TTransportManager.StopTransports:Boolean;
Description: To be documented
Note None documented


function TTransportManager.ProcessTransports:Boolean;
Description: To be documented
Note None documented


function TTransportManager.EnumerateTransports(ACallback:TTransportCallback):Boolean;
Description: To be documented
Note None documented


function TTransportManager.BindTransports(AAdapter:TNetworkAdapter):Boolean;
Description: To be documented
Note None documented


function TTransportManager.UnbindTransports(AAdapter:TNetworkAdapter):Boolean;
Description: To be documented
Note None documented


function TTransportManager.StartMonitors:Boolean;
Description: To be documented
Note None documented


function TTransportManager.StopMonitors:Boolean;
Description: To be documented
Note None documented


function TTransportManager.ProcessMonitors:Boolean;
Description: To be documented
Note None documented


function TTransportManager.EnumerateMonitors(ACallback:TMonitorCallback):Boolean;
Description: To be documented
Note None documented


function TTransportManager.BindMonitors(AAdapter:TNetworkAdapter):Boolean;
Description: To be documented
Note None documented


function TTransportManager.UnbindMonitors(AAdapter:TNetworkAdapter):Boolean;
Description: To be documented
Note None documented


function TTransportManager.StartAuthenticators:Boolean;
Description: To be documented
Note None documented


function TTransportManager.StopAuthenticators:Boolean;
Description: To be documented
Note None documented


function TTransportManager.ProcessAuthenticators:Boolean;
Description: To be documented
Note None documented


function TTransportManager.EnumerateAuthenticators(ACallback:TAuthenticatorCallback):Boolean;
Description: To be documented
Note None documented


function TTransportManager.BindAuthenticators(AAdapter:TNetworkAdapter):Boolean;
Description: To be documented
Note None documented


function TTransportManager.UnbindAuthenticators(AAdapter:TNetworkAdapter):Boolean;
Description: To be documented
Note None documented


Return to Unit Reference