Difference between revisions of "TWiredAdapter"

From Ultibo.org
Jump to: navigation, search
(Created page with "Return to Unit Network __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-co...")
 
 
Line 106: Line 106:
 
|-
 
|-
 
| <code>function ProcessAdapter:Boolean; override;</code>
 
| <code>function ProcessAdapter:Boolean; override;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>function CompareDefault(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;</code>
 +
| &nbsp;
 +
|-
 +
| <code>function CompareHardware(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;</code>
 +
| &nbsp;
 +
|-
 +
| <code>function CompareBroadcast(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;</code>
 +
| &nbsp;
 +
|-
 +
| <code>function CompareMulticast(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;</code>
 
| &nbsp;
 
| &nbsp;
 
|-
 
|-
Line 334: Line 348:
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 
<pre style="border: 0; padding-bottom:0px;">function TWiredAdapter.ProcessAdapter:Boolean;</pre>
 
<pre style="border: 0; padding-bottom:0px;">function TWiredAdapter.ProcessAdapter:Boolean;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! Note
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function TWiredAdapter.CompareDefault(AHandle:THandle; const AAddress:THardwareAddress):Boolean;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! Note
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function TWiredAdapter.CompareHardware(AHandle:THandle; const AAddress:THardwareAddress):Boolean;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! Note
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function TWiredAdapter.CompareBroadcast(AHandle:THandle; const AAddress:THardwareAddress):Boolean;</pre>
 +
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
! Note
 +
| None documented
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 0px; padding-bottom: 15px;">
 +
<pre style="border: 0; padding-bottom:0px;">function TWiredAdapter.CompareMulticast(AHandle:THandle; const AAddress:THardwareAddress):Boolean;</pre>
 
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 
<div style="font-size: 14px; padding-left: 12px;">'''Description:''' To be documented</div>
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">

Latest revision as of 02:07, 11 June 2021

Return to Unit Network


Description


To be documented

Class definitions



TWiredAdapter = class(TNetworkAdapter)

constructor Create(AManager:TAdapterManager; ADevice:PNetworkDevice; const AName:String);  
private
FDefaultAddress:THardwareAddress;  
FHardwareAddress:THardwareAddress;  
FBroadcastAddress:THardwareAddress;  
FMulticastAddresses:TMulticastAddresses;  
 
function ProcessPacket(ABuffer:Pointer; ASize:Integer):Boolean;  
protected
procedure SetStatus(AStatus:Integer); override;  
public
function AddTransport(APacketType,AFrameType:Word; const APacketName:String; APacketHandler:TAdapterPacketHandler):THandle; override;  
function RemoveTransport(AHandle:THandle; APacketType:Word):Boolean; override;  
 
function GetMTU(AHandle:THandle):Word; override;  
 
function SendPacket(AHandle:THandle; ADest:Pointer; APacket:PPacketFragment; ASize:Integer):Boolean; override;  
 
function ClearStatistics(AHandle:THandle):Boolean; override;  
function GetStatistics(AHandle:THandle):TAdapterStatistics; override;  
 
function GetDefaultAddress(AHandle:THandle):THardwareAddress; override;  
function GetHardwareAddress(AHandle:THandle):THardwareAddress; override;  
function SetHardwareAddress(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;  
function GetBroadcastAddress(AHandle:THandle):THardwareAddress; override;  
function GetMulticastAddresses(AHandle:THandle):TMulticastAddresses; override;  
 
function AddMulticastAddress(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;  
function RemoveMulticastAddress(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;  
 
function StartAdapter:Boolean; override;  
function StopAdapter:Boolean; override;  
function ProcessAdapter:Boolean; override;  
 
function CompareDefault(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;  
function CompareHardware(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;  
function CompareBroadcast(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;  
function CompareMulticast(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;  


Function declarations



constructor TWiredAdapter.Create(AManager:TAdapterManager; ADevice:PNetworkDevice; const AName:String);
Description: To be documented
Note None documented


function TWiredAdapter.ProcessPacket(ABuffer:Pointer; ASize:Integer):Boolean;
Description: To be documented
Note None documented


procedure TWiredAdapter.SetStatus(AStatus:Integer);
Description: To be documented
Note None documented


function TWiredAdapter.AddTransport(APacketType,AFrameType:Word; const APacketName:String; APacketHandler:TAdapterPacketHandler):THandle;
Description: To be documented
Note None documented


function TWiredAdapter.RemoveTransport(AHandle:THandle; APacketType:Word):Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.GetMTU(AHandle:THandle):Word;
Description: To be documented
Note None documented


function TWiredAdapter.SendPacket(AHandle:THandle; ADest:Pointer; APacket:PPacketFragment; ASize:Integer):Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.ClearStatistics(AHandle:THandle):Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.GetStatistics(AHandle:THandle):TAdapterStatistics;
Description: To be documented
Note None documented


function TWiredAdapter.GetDefaultAddress(AHandle:THandle):THardwareAddress;
Description: To be documented
Note None documented


function TWiredAdapter.GetHardwareAddress(AHandle:THandle):THardwareAddress;
Description: To be documented
Note None documented


function TWiredAdapter.SetHardwareAddress(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.GetBroadcastAddress(AHandle:THandle):THardwareAddress;
Description: To be documented
Note None documented


function TWiredAdapter.GetMulticastAddresses(AHandle:THandle):TMulticastAddresses;
Description: To be documented
Note None documented


function TWiredAdapter.AddMulticastAddress(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.RemoveMulticastAddress(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.StartAdapter:Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.StopAdapter:Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.ProcessAdapter:Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.CompareDefault(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.CompareHardware(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.CompareBroadcast(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note None documented


function TWiredAdapter.CompareMulticast(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note None documented


Return to Unit Reference