Dart.Snmp Namespace > SnmpSocket Class > GetResponses Method : GetResponses(RequestMessage,IPEndPoint) Method |
Public Overloads Function GetResponses( _ ByVal request As RequestMessage, _ ByVal broadcastEP As IPEndPoint _ ) As ResponseMessage()
Dim instance As SnmpSocket Dim request As RequestMessage Dim broadcastEP As IPEndPoint Dim value() As ResponseMessage value = instance.GetResponses(request, broadcastEP)
public ResponseMessage[] GetResponses( RequestMessage request, IPEndPoint broadcastEP )
public: ResponseMessage*[]* GetResponses( RequestMessage* request, IPEndPoint* broadcastEP )
public: array<ResponseMessage^>^ GetResponses( RequestMessage^ request, IPEndPoint^ broadcastEP )
Use this method to request a Variable value and find Agents available on the network. Note that some Agents will not respond to broadcast requests.
If a response throws a DecodingException, the Error event is raised, providing access to the response, including the encoded bytes received. The returned array will not include this packet.
If using SNMPv3 one or more ReportMessages may be returned to indicate a communications failure.
The returned Response array may contain as few as 0 responses up to as many agents as are available on the network. Origin provides the source of each ResponseMessage.