Dart.Snmp Namespace > SnmpSocket Class > Send Method : Send(RequestMessage,IPEndPoint) Method |
Public Overloads Sub Send( _ ByVal request As RequestMessage, _ ByVal remoteEP As IPEndPoint _ )
Dim instance As SnmpSocket Dim request As RequestMessage Dim remoteEP As IPEndPoint instance.Send(request, remoteEP)
public void Send( RequestMessage request, IPEndPoint remoteEP )
public: void Send( RequestMessage* request, IPEndPoint* remoteEP )
public: void Send( RequestMessage^ request, IPEndPoint^ remoteEP )
Exception | Description |
---|---|
System.Net.Sockets.SocketException | A problem was experienced using the Socket. |
Receive(RequestMessage,IPEndPoint) should be used to receive and decode the expected ResponseMessage.
It is necessary for the address family of the source and destination ports to match. For supporting both, use Start(ThreadStart,IPEndPoint,Object) to start 2 worker threads (one using AddressFamily.InterNetwork and one using AddressFamily.InternetNetworkV6).
If using SNMPv3 the discovery of the recipient's engine id is automatic and cached in SessionSecurity.EngineCache. Encrypted passwords are also cached to improve performance.