Send SNMP Trap notificationNamespace: SnmpSharpNet
Assembly: SnmpSharpNet (in SnmpSharpNet.dll) Version: 0.9.1.0 (0.9.1)
public static void SendTrap( SnmpPacket packet, IpAddress peer, int port )
Public Shared Sub SendTrap ( _ packet As SnmpPacket, _ peer As IpAddress, _ port As Integer _ )
public: static void SendTrap( SnmpPacket^ packet, IpAddress^ peer, int port )
Helper function to allow for seamless sending of SNMP notifications for all protocol versions. packet parameter should be appropriately formatted SNMP notification in SnmpV1TrapPacket, SnmpV2Packet or SnmpV3Packet class cast as SnmpPacket class. Function will determine which version of the notification is to be used by checking the type of the packet parameter and call appropriate TrapAgent member function to send it.