Re: Extend snmp_api to deal with large filehandles

2006-12-01 Thread Thijs Brouwer
Hi, We're currently working to extend the snmp_api interface so that it will be able to deal with large filehandles. To avoid quadratic behaviour in our extension for the poll interface (when using TCP connections), I need to use a hash table for integers. Is there already one implemented in t

Re: Extend snmp_api to deal with large filehandles

2006-11-23 Thread Thijs Brouwer
Ok, I'll do it that way. Thanks. Robert Story wrote: >On Thu, 23 Nov 2006 11:24:34 +0100 Thijs wrote: >TB> Problem description: we need to include an extra header in snmp_api.h >TB> (sys/poll.h), [...] >TB> >TB> Is there a smart way to add these includes for the poll.h in all the >TB> files th

Re: Extend snmp_api to deal with large filehandles

2006-11-23 Thread Robert Story
On Thu, 23 Nov 2006 11:24:34 +0100 Thijs wrote: TB> Problem description: we need to include an extra header in snmp_api.h TB> (sys/poll.h), [...] TB> TB> Is there a smart way to add these includes for the poll.h in all the TB> files that call snmp_api.h? (except for writing a script myself) I do

Extend snmp_api to deal with large filehandles

2006-11-23 Thread Thijs Brouwer
Hello all, We are working here on an extension of the snmp_api to deal with large filehandles. Some small modifications of the methods snmp_read and snmp_select_info are involved (allow for usage of the poll() interface, fd_set only allows for a limited fd size: will send in a patch proposal a