Hi!

I am looking at integrating NetSNMP  event loop (for a subagent) into an
existing event loop. I don't have  access to the internals of this event
loop: I cannot call functions each time this event loop iterates.

Looking  at agent/snmpd.c,  I  see that  at  the end  of  the loop,  two
functions are called:
 - run_alarms()
 - netsnmp_check_outstanding_agent_requests()

The first  one is  properly documented and  we can  also call it  when a
timeout occurs  as soon as alarms  don't use SIGALRM (which  is the case
for an agent because init_agent() disable SIGALRM). No problem with it.

The second one does not have  such a documentation.  What is its purpose
(I don't  understand what a delegated  session is)?  Can I  call it only
when a  timeout occurs? Or should I  call it when any  SNMP event occurs
(timeout or SNMP socket ready to be read)?
-- 
Vincent Bernat ☯ http://vincent.bernat.im

panic ("Splunge!");
        2.2.16 /usr/src/linux/drivers/scsi/psi240i.c

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
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

Reply via email to