Click or drag to resize

SnmpMessageExtension.GetResponseAsync(ISnmpMessage, IPEndPoint, Socket, CancellationToken) Method

Sends this ISnmpMessage and handles the response from agent.

Namespace: Lextm.SharpSnmpLib.Messaging
Assembly: SharpSnmpLib (in SharpSnmpLib.dll) Version: 12.5.7-2+Branch.master.Sha.2a75ece2c9d55c4f731f356d1512c8a5d19fa096.2a75ece2c9d55c4f731f356d1512c8a5d19fa096
Syntax
public static Task<ISnmpMessage> GetResponseAsync(
	this ISnmpMessage request,
	IPEndPoint receiver,
	Socket udpSocket,
	CancellationToken token
)

Parameters

request  ISnmpMessage
The ISnmpMessage.
receiver  IPEndPoint
Agent.
udpSocket  Socket
The UDP Socket to use to send/receive.
token  CancellationToken
The cancellation token.

Return Value

Task<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