Sends data synchronously.
A reply from the receiver, whether the send operation was successful, or if the data needs to be resent, is expected.
A reply from the receiver, whether the send operation was successful, or if the data needs to be resent, is expected.
- 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.
True, if the send operation was successful.
'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
Assembly: Gurux.SNMP (Module: Gurux.SNMP) Version: 5.0.0.1