>>>>> On Wed, 22 Mar 2006 14:47:33 +0000, "Guillaume Desticourt" <[EMAIL >>>>> PROTECTED]> said:
Guillaume> case MODE_GET: Guillaume> status1 = snmp_synch_response(_session_handler, Guillaume> _pdu1, Guillaume> &response1); this won't work because you're querying the same agent as is processing the request. If you really want to do this (and I'd argue it may not be the best way to do what you're trying to do) you can, but it'll take a lot more work. You need to do 3 things: 1) learn how to send an asynchronous request instead of a synchronous one 2) send the request to a callback transport instead (an example is in agent/mibgroup/disman/event/ ). this is optional but is more efficient than sending it to the 161 port like you're doing now. 3) use a delayed response from within your module. See agent/mibgroup/delayed_instance.c for an example. -- Wes Hardaker Sparta, Inc. ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
