Dart.Snmp Namespace > SnmpBase Class > Open Method : Open(IPEndPoint,Boolean,Boolean) Method |
Public Overloads Sub Open( _ ByVal localEP As IPEndPoint, _ ByVal acceptBroadcast As Boolean, _ ByVal dualMode As Boolean _ )
Dim instance As SnmpBase Dim localEP As IPEndPoint Dim acceptBroadcast As Boolean Dim dualMode As Boolean instance.Open(localEP, acceptBroadcast, dualMode)
public void Open( IPEndPoint localEP, bool acceptBroadcast, bool dualMode )
public: void Open( IPEndPoint* localEP, bool acceptBroadcast, bool dualMode )
public: void Open( IPEndPoint^ localEP, bool acceptBroadcast, bool dualMode )
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.
Open and Receive are used when the current thread should sleep while waiting for the next packet. This technique is typically used in scripting applications. Use Close to release resources.