Packet Sniffer SDK VCL Edition

HNAdapter :: Events :: OnStateChange

 Previous Next

Occurs when the network adapter state has been changed.

Syntax:

TOnStateChange = procedure (Sender : TObject;
                              State: Integer) of object;

Parameters:

State

[in] Values of this parameter are defined in the HNNetAdapterStateChange enumeration. If State value is set to scInterfaceDown, HNAdapter component will call CloseAdapter method to close the network adapter.

Description:

The HNAdapter component fires the OnAdapterStateChange event when the network adapter state has been changed (i.e. network cable is plugged, etc.).

See also:HNAdapter, HNNetAdapterStateChange, CloseAdapter