How to do create a net-snmp subagent without infinite while loop

Simon Saha <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <OF9A5DA586.816CBAC1-ON652570D7.002295E5-652570D7.00231DFE@flextronicssoftware.com>



I know that I am mailing at wrong address but mails at
[email protected] are not getting delivered. So please
forward my mail to correct destination.

Dear Sir/Madam,
               I am using net-snmp version 5.2.2 to develop a
subagent to a protocol stack. I want both the stack and subagent to run as
a single process. But as your tutorial suggest my subagent has to be stuck
in an infinite while loop waiting for SNMP request, like the following.

 while(keep_running) {
    agent_check_and_process(1); /* 0 == don't block */
  }

But this loop is disturbing my stack and I don't want it. How can I do away
with this loop? Please help me in this reguard.

Yours sincerely
Simon Saha

***********************  FSS-Unclassified   ***********************

"DISCLAIMER: This message is proprietary to Flextronics Software
Systems Limited (FSS) and is intended solely for the use of the
individual to whom it is addressed. It may contain  privileged or
confidential information and should not be circulated or used for
any purpose other than for what it is intended. If you have received
this message in  error, please notify the originator immediately.
If you are not the intended recipient, you are notified that you are
strictly  prohibited  from  using, copying, altering, or disclosing
the contents of this message.  FSS  accepts no  responsibility  for
loss or damage arising from the use of  the information transmitted
by this email including damage from virus."



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.