BadPacket Event
Fired for erroneous and/or malformed messages.
Syntax
[VB.NET] Public Event OnBadPacket As OnBadPacketHandler
[C#] public event OnBadPacketHandler OnBadPacket; public delegate void OnBadPacketHandler(object sender, SnmpmgrBadPacketEventArgs e); class SnmpmgrBadPacketEventArgs : EventArgs { string Packet {get;} byte[] PacketB {get;} string SourceAddress {get;} int SourcePort {get;} int ErrorCode {get;} string ErrorDescription {get;} bool Report {get; set;} }
Remarks
The full message is provided in the Packet parameter.
The BadPacket event is also fired when authentication fails for received packets due to a bad password or other reasons.
If the Report parameter is set to True, an unauthenticated error report will be sent to the client, otherwise the packet will be silently ignored.