Wes, Do you think that would incurr too much overhead if we are doing a lot of polling?
Also, attached is a patch which makes visible the get_tc_index (parse.c) and root_imports. I needed to do this for a MibLoader application I wrote. I figured it was no problem because the get_tc_description is visible outside the parse.c file but that takes an index. Which you need to get from get_tc_index. Quoting Wes Hardaker <[EMAIL PROTECTED]>: > >>>>> On Thu, 03 Jun 2004 14:03:31 -0400, Glenn MacGregor > <[EMAIL PROTECTED]> said: > > Glenn> I am upgrading my application to use Net-SNMP version 5.1.1 from > Glenn> 4.2.6. I poll many SNMP devices so I only open one "dummy" session > and > Glenn> change the transport_data member of the pdu to be the correct > Glenn> sockaddr_in for where I want to send to. The reason I do this is > Glenn> because open a session for each host I poll would cut the number of > Glenn> devices I can poll in half due to the open socket limits on Linux. > Is > Glenn> this valid, or am I screwing something up by doing this? Is there a > Glenn> better way to achive this (all my SNMP traffic is async)? > > The proper solution would be to fix the library so it doesn't open new > ports for ever session. Oh, and then send us a patch so it'll be > available later ;-) > > -- > Wes Hardaker > Sparta > Glenn MacGregor HighStreet Networks ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/
net-snmp-5.1.1-HSN.patch
Description: Binary data
