Dart.Snmp Namespace > SnmpSocket Class > Receive Method : Receive(RequestMessage,IPEndPoint) Method |
Public Overloads Function Receive( _ ByVal request As RequestMessage, _ ByVal remoteEP As IPEndPoint _ ) As ResponseMessage
Dim instance As SnmpSocket Dim request As RequestMessage Dim remoteEP As IPEndPoint Dim value As ResponseMessage value = instance.Receive(request, remoteEP)
public ResponseMessage Receive( RequestMessage request, IPEndPoint remoteEP )
public: ResponseMessage* Receive( RequestMessage* request, IPEndPoint* remoteEP )
public: ResponseMessage^ Receive( RequestMessage^ request, IPEndPoint^ remoteEP )
Exception | Description |
---|---|
System.ArgumentNullException | The request parameter is null. |
System.Net.Sockets.SocketException | A problem was experienced using the Socket or the Socket.ReceiveTimeout period has expired. |
DecodingException | A problem was encountered decoding the Response. |
Returns when a matching response is received and decoded. Normally used on a worker thread. A matching StandardMessage.Id or Id is required in the response, and the source IPEndPoint must match that of the request. All received messages are reported to Log (matching and non-matching).