|
SnmpMessageExtensionGetResponse(ISnmpMessage, Int32, IPEndPoint, Socket) Method
|
Sends this
ISnmpMessage and handles the response from agent.
Namespace: GSF.Net.Snmp.MessagingAssembly: GSF.Net (in GSF.Net.dll) Version: 2.4.248-beta
Syntax<ExtensionAttribute>
Public Shared Function GetResponse (
request As ISnmpMessage,
timeout As Integer,
receiver As IPEndPoint,
udpSocket As Socket
) As ISnmpMessage
public:
[ExtensionAttribute]
static ISnmpMessage^ GetResponse(
ISnmpMessage^ request,
int timeout,
IPEndPoint^ receiver,
Socket^ udpSocket
)
[<ExtensionAttribute>]
static member GetResponse :
request : ISnmpMessage *
timeout : int *
receiver : IPEndPoint *
udpSocket : Socket -> ISnmpMessage
GSF.Net.Snmp.Messaging.SnmpMessageExtension.GetResponse = function(request, timeout, receiver, udpSocket);
View SourceParameters
- 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.
- udpSocket Socket
- The UDP Socket to use to send/receive.
Return Value
ISnmpMessageUsage 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