Click or drag to resize

wclWiFiSniffer Class

The class allows your application to capture raw packets from your WiFi adapter.
Inheritance Hierarchy
SystemObject
  wclWiFiwclWiFiSniffer

Namespace: wclWiFi
Assembly: wclWiFiFramework (in wclWiFiFramework.dll) Version: 7.13.1.0 (7.13.1.0)
Syntax
public class wclWiFiSniffer

The wclWiFiSniffer type exposes the following members.

Constructors
 NameDescription
Public methodwclWiFiSniffer Creates a new WiFi Sniffer.
Top
Properties
 NameDescription
Public propertyActive Gets the sniffer's state.
Public propertyDoNotChangeMode Gets and sets the value controlled how the Sniffer will work with the WiFi hardware interface.
Public propertyIfaceId Gets the WiFi Interface ID.
Public propertyMessageProcessing Gets and sets a message processing method that should be used by the WiFi Sniffer.
Public propertyMode Gets the current WiFi interface mode.
Top
Methods
 NameDescription
Public methodClose Stops capturing WiFi frames and closes the sniffer.
Protected methodDoAfterOpen Fires the AfterOpen event.
Protected methodDoBeforeClose Fires the BeforeClose event.
Protected methodDoFrameReceived Fires the OnFrameReceived event.
Protected methodDoRawFrameReceived Fires the OnRawFrameReceived event.
Public methodEqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetChannel Get the current channel.
Public methodGetHashCodeServes as a hash function for a particular type.
(Inherited from Object)
Public methodGetMacAddr Gets the WiFi adapter current MAC address.
Public methodGetPhy Gets the current adapter's PHY.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOpen Opens the sniffer and starts capturing WiFI frames.
Public methodSetChannel Sets the current channel.
Public methodSetPhy Sets the current PHY.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventAfterOpen The event fires after the Sniffer was opened with success.
Public eventBeforeClose The event fires before the Sniffer will be closed.
Public eventOnFrameReceived The event fires when a new frame received.
Public eventOnRawFrameReceived The event fires when a new frame received.
Top
Remarks

Please note, that not all WiFi adapters can capture the raw packets. To be able to do that your adapter must support Monitor Mode.

The component requires Microsoft Network Monitor 3.4 filter driver to be installed on your system. You can download and install the Microsoft Network Monitor 3.4 by the following link: https://www.microsoft.com/en-us/download/details.aspx?id=4865

NOTE: The component is not thread-safe.

See Also