Dear list:
That's okay. I already figured out how to process the received data.
Thanks!
-Jim
-----Original Message-----
From: Jim Su [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 5:46 PM
To: Net-Snmp-Users
Subject: RE: asynchrous polling
Dear list:
I'm able to run the asynchronous polling by adapting the mechanism from
demo code.
To check the operation == NETSNMP_CALLBACK_OP_RECEIVED_MESSAGE then parse the
returned value to determine the type of device then add three or more null var
objects according to the device type then call snmp_send.
From the log and tcpdump I can see the returned polling values. I would
like to know the place to add code to store the returned values of the three
objects from the second send is in the call back function too.
It looks like the handling should be added in the callback function but what is
the means to distinguish the returned values from two snmp_send?
Thanks in advanced.
Jim
-----Original Message-----
From: Wes Hardaker [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 01, 2006 2:24 AM
To: Jim Su
Cc: Net-Snmp-Users
Subject: Re: asynchrous polling
>>>>> On Thu, 30 Mar 2006 16:19:52 +0800, "Jim Su" <[EMAIL PROTECTED]> said:
Jim> I found the "NETSNMP_CALLBACK_OP_RECEIVED_MESSAGE" in
Jim> snmplib/snmp_api.c and snmp_clinet.c. Could it be the one I
Jim> should use in the code? Anything else I should add (in order to
Jim> make asynchronous polling) is not documented in the demo code?
Jim> Thanks in advance.
Yep. That's the right ENUM. we changed them from the shorter ones a
while ago to try and be more "unique".
The *current* tutorial uses NETSNMP_CALLBACK_OP_RECEIVED_MESSAGE. I
suspect you were looking at an older one.
--
Wes Hardaker
Sparta, Inc.
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.3/298 - Release Date: 2006/3/30
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/318 - Release Date: 2006/4/18
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.4/320 - Release Date: 2006/4/20