Difference between revisions of "TWiFiAdapter"
From Ultibo.org
(Created page with "Return to Unit WiFi __TOC__ === Description === ---- ''To be documented'' === Class definitions === ---- <div class="toccolours mw-collapsible mw-collapse...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 119: | Line 119: | ||
|- | |- | ||
| <code>function ProcessAdapter:Boolean; override;</code> | | <code>function ProcessAdapter:Boolean; override;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>function CompareDefault(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>function CompareHardware(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>function CompareBroadcast(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;</code> | ||
+ | | | ||
+ | |- | ||
+ | | <code>function CompareMulticast(AHandle:THandle; const AAddress:THardwareAddress):Boolean; override;</code> | ||
| | | | ||
|- | |- | ||
Line 389: | Line 401: | ||
! Note | ! Note | ||
| ieee80211_rx | | ieee80211_rx | ||
+ | |- | ||
+ | |} | ||
+ | </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 TWiFiAdapter.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 TWiFiAdapter.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 TWiFiAdapter.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 TWiFiAdapter.CompareMulticast(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 | ||
|- | |- | ||
|} | |} |
Latest revision as of 06:55, 30 July 2021
Return to Unit WiFi
Description
To be documented
Class definitions
TWiFiAdapter = class(TNetworkAdapter)
constructor Create(AManager:TAdapterManager; ADevice:PNetworkDevice; const AName:String);
|
|
private
| |
FDefaultAddress:THardwareAddress;
|
|
FHardwareAddress:THardwareAddress;
|
|
FBroadcastAddress:THardwareAddress;
|
|
FMulticastAddresses:TMulticastAddresses;
|
|
function CheckReceiveFrame(APacket:PNetworkPacket; AStatus:PIEEE80211RXStatus):Boolean;
|
|
function ReceiveHandler(APacket:PNetworkPacket; AStatus:PIEEE80211RXStatus):Boolean;
|
|
function ScanReceiver(APacket:PNetworkPacket; AStatus:PIEEE80211RXStatus):Boolean;
|
|
function DataReceiver(APacket:PNetworkPacket; AStatus:PIEEE80211RXStatus):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 TWiFiAdapter.Create(AManager:TAdapterManager; ADevice:PNetworkDevice; const AName:String);
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.CheckReceiveFrame(APacket:PNetworkPacket; AStatus:PIEEE80211RXStatus):Boolean;
Description: Check if a received frame is valid to continue processing or should be dropped
Note | should_drop_frame |
---|
function TWiFiAdapter.ReceiveHandler(APacket:PNetworkPacket; AStatus:PIEEE80211RXStatus):Boolean;
Description: To be documented
Note | __ieee80211_rx_handle_packet / ieee80211_prepare_and_rx_handle |
---|
function TWiFiAdapter.ScanReceiver(APacket:PNetworkPacket; AStatus:PIEEE80211RXStatus):Boolean;
Description: To be documented
Note | ieee80211_scan_rx |
---|
function TWiFiAdapter.DataReceiver(APacket:PNetworkPacket; AStatus:PIEEE80211RXStatus):Boolean;
Description: To be documented
Note | ieee80211_prepare_and_rx_handle |
---|
procedure TWiFiAdapter.SetStatus(AStatus:Integer);
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.AddTransport(APacketType,AFrameType:Word; const APacketName:String; APacketHandler:TAdapterPacketHandler):THandle;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.RemoveTransport(AHandle:THandle; APacketType:Word):Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.GetMTU(AHandle:THandle):Word;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.SendPacket(AHandle:THandle; ADest:Pointer; APacket:PPacketFragment; ASize:Integer):Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.ClearStatistics(AHandle:THandle):Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.GetStatistics(AHandle:THandle):TAdapterStatistics;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.GetDefaultAddress(AHandle:THandle):THardwareAddress;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.GetHardwareAddress(AHandle:THandle):THardwareAddress;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.SetHardwareAddress(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.GetBroadcastAddress(AHandle:THandle):THardwareAddress;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.GetMulticastAddresses(AHandle:THandle):TMulticastAddresses;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.AddMulticastAddress(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.RemoveMulticastAddress(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.StartAdapter:Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.StopAdapter:Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.ProcessAdapter:Boolean;
Description: To be documented
Note | ieee80211_rx |
---|
function TWiFiAdapter.CompareDefault(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.CompareHardware(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.CompareBroadcast(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note | None documented |
---|
function TWiFiAdapter.CompareMulticast(AHandle:THandle; const AAddress:THardwareAddress):Boolean;
Description: To be documented
Note | None documented |
---|
Return to Unit Reference