PowerSNMP for .NET
Open(IPEndPoint,Boolean) Method




The local IPEndPoint the socket will bind to. Use port 161 for most agent applications; port 162 for most manager applications.
Indicates whether broadcast packets will be processed. Must be false when using a dual mode socket.
Opens System.Net.Sockets.Socket using the specified IPEndPoint. Only necessary if Receive is used.
Syntax
Public Overloads Sub Open( _
   ByVal localEP As IPEndPoint, _
   ByVal acceptBroadcast As Boolean _
) 
Dim instance As SnmpBase
Dim localEP As IPEndPoint
Dim acceptBroadcast As Boolean
 
instance.Open(localEP, acceptBroadcast)
public void Open( 
   IPEndPoint localEP,
   bool acceptBroadcast
)
public: void Open( 
   IPEndPoint* localEP,
   bool acceptBroadcast
) 
public:
void Open( 
   IPEndPoint^ localEP,
   bool acceptBroadcast
) 

Parameters

localEP
The local IPEndPoint the socket will bind to. Use port 161 for most agent applications; port 162 for most manager applications.
acceptBroadcast
Indicates whether broadcast packets will be processed. Must be false when using a dual mode socket.
Remarks

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.

See Also

Reference

SnmpBase Class
SnmpBase Members
Overload List

6.1.1.2
PowerSNMP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic