"Pierre Dupr__s" <=?Utf-8?Q?Pierre_Dupr=C3=A8s?=> wrote in message
news:✉forums.embarcadero.com...
> Well, I would really be very interested in knowing how
> you have managed to succefully receive traps with the
> idsnmp.receivetrap function !
He showed you exactly how he is doing it.
> Impossible for my part, with delphi7, windows XP
> and TIdSNMP component !
Did you upgrade to a newer Indy version yet?
> Note that the short code you've wrotten can't
> work as you don't use the idsnmp.create constructor...
Obviously, when he posted is just a snippet of larger code and not meant to
be compiled as-is.
> NB : idsnmp works for getting snmp informations, I do it
> well, it's only receiving traps that really doesn't seem to work...
Like I said earlier, TIdSNMP only supports SNMP v1 at this time. Are you
receiving v1 traps to begin with?
> NB2 : I show you the way I'm trying to do it (I've used a timer and
> udp port is 162, and wireshark shows traps are well arriving on the
> port...)
Please provide the actual Wireshark capture.
> but receivetrap always returns 0...:
Then either TIdSNMP is not receiving any data at all, or it is timing out.
--
Remy Lebeau (TeamB)