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




request
An instance of GetMessage, GetNextMessage, GetBulkMessage, SetMessage or InformMessage.
broadcastEP
The broadcast IPEndPoint to use.
Sends a blocking broadcast request to any IPEndPoint.

Syntax

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

Parameters

request
An instance of GetMessage, GetNextMessage, GetBulkMessage, SetMessage or InformMessage.
broadcastEP
The broadcast IPEndPoint 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.