Visual Basic (Declaration) | |
---|---|
Public Overloads Function GetResponses( _ ByVal request As RequestMessage, _ ByVal broadcastAddress As String, _ ByVal agentPort As Integer _ ) As ResponseMessage() |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ManagerSlave Dim request As RequestMessage Dim broadcastAddress As String Dim agentPort As Integer Dim value() As ResponseMessage value = instance.GetResponses(request, broadcastAddress, agentPort) |
C# | |
---|---|
public ResponseMessage[] GetResponses( RequestMessage request, string broadcastAddress, int agentPort ) |
Managed Extensions for C++ | |
---|---|
public: ResponseMessage*[]* GetResponses( RequestMessage* request, string* broadcastAddress, int agentPort ) |
C++/CLI | |
---|---|
public: array<ResponseMessage^>^ GetResponses( RequestMessage^ request, String^ broadcastAddress, int agentPort ) |
Parameters
- request
- An instance of GetMessage, GetNextMessage, GetBulkMessage, SetMessage or InformMessage.
- broadcastAddress
- The broadcast address to use.
- agentPort
- The target port to use.
Return Value
An array of ResponseMessage objects returned from SNMP agents. Since multiple responses are typically returned, this method reads responses from the socket until a timeout occurs.This method sends a Request to many agents at once.
Use this method to request the sysUpTime value (to 'discover’ all the Agents available on the network with a single call).
The returned Response array may contain as few as 0 responses up to as many agents as there are available on the network. Use MessageBase.Origin to determine from which agent each ResponseMessage originated.
Target Platforms: Microsoft .NET Framework 2.0