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




request
An instance of GetMessage, GetNextMessage, GetBulkMessage, SetMessage or InformMessage.
Sends a blocking broadcast request to the default agent port (161).

Syntax

Visual Basic (Declaration) 
Public Overloads Function GetResponses( _
   ByVal request As RequestMessage _
) As ResponseMessage()
Visual Basic (Usage)Copy Code
Dim instance As ManagerSlave
Dim request As RequestMessage
Dim value() As ResponseMessage
 
value = instance.GetResponses(request)
C# 
public ResponseMessage[] GetResponses( 
   RequestMessage request
)
Managed Extensions for C++ 
public: ResponseMessage*[]* GetResponses( 
   RequestMessage* request
) 
C++/CLI 
public:
array<ResponseMessage^>^ GetResponses( 
   RequestMessage^ request
) 

Parameters

request
An instance of GetMessage, GetNextMessage, GetBulkMessage, SetMessage or InformMessage.

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 using the default broadcast address of 255.255.255.255.

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.