Hi,
even if i am not using this while loop in my separate thread, than also my
application stuck.
/*
while(keep_running) {
agent_check_and_process(1);
}
*/
i got these messages from my application p1
*NET-SNMP version 5.3.1 AgentX subagent connected
snmp agent is up.
*
and after that my application is not loading.
it looks like that SNMP subAgent establishes a permanent connection with
master agent and stops loading of application p1.
i just want to enhance the performance of application p1 that can respond to
snmp messages.
but my existing functionality of p1 should work as it is.
Regards
Ashish Vashishtha
On Thu, Jan 14, 2010 at 6:51 PM, Dave Shield <d.t.shi...@liverpool.ac.uk>wrote:
> 2010/1/14 Ashish vashishtha <ashish.vashish...@gmail.com>:
> > when i am starting my existing application p1 that stops executing when
> it
> > starts the sub agent code(this code).
>
> That's because you've got an (infinite) event loop:
>
> while(keep_running) {
> agent_check_and_process(1);
> }
>
>
> > can you please help me how i can develop sub agent that can be
> > embeded in existing application.
>
> You need to move the agent_check_and_process()
> call into the event loop of your application, and the final
> snmp_shutdown()/SOCK_CLEANUP processing into the
> cleanup routines of your application.
>
> Dave
>
--
Regards
Ashish Vashishtha
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users