TAddressEntry

From Ultibo.org
Jump to: navigation, search

Return to Unit Transport


Description


To be documented

Class definitions



TAddressEntry = class(TListObject)

constructor Create;  
destructor Destroy; override;  
private
FLock:TSynchronizerHandle;  
FLocalLock:TMutexHandle;  
 
procedure SetFamily(AFamily:Integer);  
procedure SetLength(ALength:Integer);  
procedure SetAddressType(AAddressType:Word);  
procedure SetAddressTime(const AAddressTime:Int64);  
procedure SetAdapter(AAdapter:TNetworkAdapter);  
protected
FFamily:Integer; Always 2 for AF_INET
FLength:Integer; Always 4 for AF_INET
FAddressType:Word; Dynamic/Static/Multicast/Broadcast/Primary/Secondary
FAddressTime:Int64; Flush time for Dynamic entries
FAdapter:TNetworkAdapter;  
 
function AcquireLock:Boolean;  
function ReleaseLock:Boolean;  
public
property Family:Integer read FFamily write SetFamily;  
property Length:Integer read FLength write SetLength;  
property AddressType:Word read FAddressType write SetAddressType;  
property AddressTime:Int64 read FAddressTime write SetAddressTime;  
property Adapter:TNetworkAdapter read FAdapter write SetAdapter;  
 
function ReaderLock:Boolean;  
function ReaderUnlock:Boolean;  
function ReaderConvert:Boolean;  
function WriterLock:Boolean;  
function WriterUnlock:Boolean;  
function WriterConvert:Boolean;  


Function declarations



constructor TAddressEntry.Create;
Description: To be documented
Note None documented


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


procedure TAddressEntry.SetFamily(AFamily:Integer);
Description: To be documented
Note None documented


procedure TAddressEntry.SetLength(ALength:Integer);
Description: To be documented
Note None documented


procedure TAddressEntry.SetAddressType(AAddressType:Word);
Description: To be documented
Note None documented


procedure TAddressEntry.SetAddressTime(const AAddressTime:Int64);
Description: To be documented
Note None documented


procedure TAddressEntry.SetAdapter(AAdapter:TNetworkAdapter);
Description: To be documented
Note None documented


function TAddressEntry.AcquireLock:Boolean;
Description: To be documented
Note None documented


function TAddressEntry.ReleaseLock:Boolean;
Description: To be documented
Note None documented


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


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


function TAddressEntry.ReaderConvert:Boolean; 
Description: Convert a Reader lock to a Writer lock
Note None documented


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


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


function TAddressEntry.WriterConvert:Boolean;
Description: Convert a Writer lock to a Reader lock
Note None documented


Return to Unit Reference