PowerSNMP for .NET
SnmpSocket Constructor(SnmpBase,IPEndPoint,Boolean)




The controlling Agent or Manager.
The local IPEndPoint the socket should bind to.
Specifies whether the socket should be a dual mode IPv6 socket. Only supported on Vista and newer operating systems.
Creates an instance of SnmpSocket bound to a specific local IPEndPoint.
Syntax
Public Function New( _
   ByVal entity As SnmpBase, _
   ByVal localEP As IPEndPoint, _
   ByVal dualMode As Boolean _
)
Dim entity As SnmpBase
Dim localEP As IPEndPoint
Dim dualMode As Boolean
 
Dim instance As New SnmpSocket(entity, localEP, dualMode)
public SnmpSocket( 
   SnmpBase entity,
   IPEndPoint localEP,
   bool dualMode
)
public: SnmpSocket( 
   SnmpBase* entity,
   IPEndPoint* localEP,
   bool dualMode
)
public:
SnmpSocket( 
   SnmpBase^ entity,
   IPEndPoint^ localEP,
   bool dualMode
)

Parameters

entity
The controlling Agent or Manager.
localEP
The local IPEndPoint the socket should bind to.
dualMode
Specifies whether the socket should be a dual mode IPv6 socket. Only supported on Vista and newer operating systems.
Remarks

localEP.AddressFamily must match the AddressFamily of the target SNMP entity 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.

When created by the user, Close() should be used to release resources.

See Also

Reference

SnmpSocket Class
SnmpSocket Members
Overload List


PowerSNMP for .NET Documentation Version 8.0
© 2024 Dart Communications. All Rights Reserved.
Send comments on this topic