Dart.Snmp Namespace > SnmpSocket Class > Send Method : Send(RequestMessage,IPEndPoint) Method |
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.