Dart.Snmp Namespace > Manager Class > Start Method : Start(NotificationReceived,IPEndPoint,Boolean,Boolean,Object) Method |
Public Overloads Sub Start( _ ByVal callback As NotificationReceived, _ ByVal localEP As IPEndPoint, _ ByVal acceptBroadcast As Boolean, _ ByVal dualMode As Boolean, _ ByVal state As Object _ )
Dim instance As Manager Dim callback As NotificationReceived Dim localEP As IPEndPoint Dim acceptBroadcast As Boolean Dim dualMode As Boolean Dim state As Object instance.Start(callback, localEP, acceptBroadcast, dualMode, state)
public void Start( NotificationReceived callback, IPEndPoint localEP, bool acceptBroadcast, bool dualMode, object state )
public: void Start( NotificationReceived* callback, IPEndPoint* localEP, bool acceptBroadcast, bool dualMode, Object* state )
public: void Start( NotificationReceived^ callback, IPEndPoint^ localEP, bool acceptBroadcast, bool dualMode, Object^ state )
This method presents all asynchronous messages that may be received by a Manager.
This method always creates a new SocketBase.Socket. Use multiple Manager instances to accept traps on multiple specific interfaces, or to accept both IPv4 and IPv6 traps on specific interfaces.
The localEP.AddressFamily must match the AddressFamily of the expected source of each message, unless dualMode is true and localEP.Address is IPAddress.IPv6Any or an IPv4-mapped IPv6 address. If dual mode (simultaneous IPv4 and IPv6) socket operation is desired, use IPAddress.IPv6Any (for all IPv4 and IPv6 interfaces) or an IPv4-mapped IPv6 address for the localEP address, and true for the dualMode argument. An IPv4-mapped IPv6 address is the IPv4 address of a network interface preceded by "::ffff:". Ex: ::ffff:192.168.1.1. If an IPv4-mapped IPv6 address is used then acceptBroadcast must be false. To accept broadcast packets in dual mode, IPAddress.IPv6Any must be used.
If an InformMessage is received (from another manager or an agent), use SnmpBase.Send to send the expected ResponseMessage. No response is expected when a trap is received.
Unhandled exceptions occurring on the worker thread will be caught and reported by the Error event.
Scripting applications should use Receive instead.