[AGENT++] problem with notify_register() and response through callback function

Martijn Spaan mspa at oce.nl
Fri Oct 8 09:36:21 CEST 2004


Hi,

I am trying to receive traps from a printer device, but something goes 
wrong. I use notify_register() to register the traps I want to subscribe 
to. I also see (with a sniffer) that the traps are received by my 
computer successfully but they are not redirected to my callback 
function I have specified when calling notify_register().

When debugging I see that in the receive_snmp_response(), GetEntry() is 
called with a specified notify_id. This id contains 0 and the GetEntry() 
returns NULL because absolutely no entries are registered.

What goes wrong, and what can I do about it. If you need more 
information I will gladly provide it.

Thanks,

Martijn Spaan
mspa at oce.nl



More information about the AGENTPP mailing list