PowerSNMP for .NET CF
GetResponses(RequestMessage,String,Int32) Method
See Also  Send comments on this topic.
Dart.Snmp Namespace > ManagerSlave Class > GetResponses Method : GetResponses(RequestMessage,String,Int32) Method




request
An instance of GetMessage, GetNextMessage, GetBulkMessage, SetMessage or InformMessage.
broadcastAddress
The broadcast address to use.
agentPort
The target port to use.
Sends a blocking broadcast request to any address and port.

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetResponses( _
   ByVal request As RequestMessage, _
   ByVal broadcastAddress As String, _
   ByVal agentPort As Integer _
) As ResponseMessage()
Visual Basic (Usage)Copy Code
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.

Remarks

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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.