GXDN: Gurux Developer Network
SendSync Method (packet, receiver, waitTime)
NamespacesGurux.SNMPGXSNMPSendSync(GXSNMPPacket, Object, Int32)
Sends data synchronously.
A reply from the receiver, whether the send operation was successful, or if the data needs to be resent, is expected.
Parameters
packet (GXSNMPPacket)
The SNMP packet to send.
receiver (Object)
IP address of the receiver.
waitTime (Int32)
Maximum time, in milliseconds, to wait for reply data. WaitTime -1 indicates infinite wait time.
Return Value
True, if the send operation was successful.
Examples
CopyVBScript
                'Send SNMP packet and wait until reply is received or timeout occurred (5 seconds).
Dim pack As GXSNMPPacket
set pack = CreateObject("GuruxSNMP.GXSNMPPacket")
pack.Command = GX_SNMP_COMMAND_GET_NEXT        
If GXSNMP1.SendSync pack, "localhost", 5000 then
    MsgBox pack.DataItems(pos).Data + ": " + pack.DataItems(pos).OID
End If
See Also

Assembly: Gurux.SNMP (Module: Gurux.SNMP) Version: 5.0.0.1