smartinspectpython.sifiltereventargs

@export
class SIFilterEventArgs:

This class is used by the SmartInspect.Filter event.

Threadsafety:

This class is fully thread-safe.

SIFilterEventArgs(packet: smartinspectpython.sipacket.SIPacket)

Initializes a new instance of the class.

Arguments:
  • packet (SIPacket): The packet which caused the event.

This read-only property returns the packet, which caused the event.

Cancel: bool

Gets the Cancel property value.

This property can be used to cancel the processing of certain packets during the SmartInspect.Filter event.

@export
class SIFilterEventHandler:

This is the event handler type for the SmartInspect.Filter event.

SIFilterEventHandler( sender: object, e: SIFilterEventArgs)

Initializes a new instance of the class.

Arguments:
  • sender (object): The object which fired the event.
  • e (SIFilterEventArgs): Arguments that contain detailed information related to the event, and canceling of its processing.