On Mon, 18 Oct 2004 09:45:13 -0200 Ivens wrote:
IP> Then I changed the main loop code to use snmp_select_info() because
IP> there is one extra file descriptor that my application needs to watch for.
IP>
IP> memset(&tv, 0, sizeof(tv));
Try setting the timeout value to some large value. snmp_select_info will
shorten the timeout if someone else has a pending event.
IP> // now add my fd
IP> if ((myfd + 1) > maxfdp1)
IP> maxfdp1 = myfd + 1;
IP>
IP> FD_SET(myfd, &fdset);
You might want to register your fd with the app, so you don't have to do this
part. See
http://www.net-snmp.org/faqs/rstory/#readfds
--
Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/>
<irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders