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

This is a discussion on How to do create a net-snmp subagent without infinite while loop within the SNMP Users forums, part of the Networking and Network Related category; I know that I am mailing at wrong address but mails at net-snmp-coders@list.sourceforge.net are not ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-14-2005
Simon Saha
 
Posts: n/a
Default How to do create a net-snmp subagent without infinite while loop





I know that I am mailing at wrong address but mails at
net-snmp-coders@list.sourceforge.net 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0