Click or drag to resize

SnmpMessageExtensionGetResponse(ISnmpMessage, Int32, IPEndPoint, UserRegistry, Socket) Method

Sends an ISnmpMessage and handles the response from agent.

Namespace: GSF.Net.Snmp.Messaging
Assembly: GSF.Net (in GSF.Net.dll) Version: 2.4.207-beta
Syntax
public static ISnmpMessage GetResponse(
	this ISnmpMessage request,
	int timeout,
	IPEndPoint receiver,
	UserRegistry registry,
	Socket udpSocket
)
View Source

Parameters

request  ISnmpMessage
The ISnmpMessage.
timeout  Int32
The time-out value, in milliseconds. The default value is 0, which indicates an infinite time-out period. Specifying -1 also indicates an infinite time-out period.
receiver  IPEndPoint
Agent.
registry  UserRegistry
The user registry.
udpSocket  Socket
The UDP Socket to use to send/receive.

Return Value

ISnmpMessage

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISnmpMessage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also