Re: Multi-threaded Net-SNMP Client

2012-09-17 Thread Katia Sarsempagieva
Hello and sorry for the delayed answer! @ Mukund --- Unfortunately, I cannot find the "No Threads When init_snmp('progname')" restriction. I have read it somewhere, but I cannot find it again... Also, when running multiple threads with one session per thread (with init

RE: Multi-threaded Net-SNMP Client

2012-09-10 Thread Edouard COLE
Hello Katia, I'm pretty new to net-snmp library, but I'd rather develop a layer on top of net-snmp to handle multiples requests in the same thread (with the asynchronous API) since net-snmp is only a network layer. That way you should factorize the memory usage for the whole net-snmp environmen

Re: Multi-threaded Net-SNMP Client

2012-09-09 Thread Nathan, Mukund
keep us posted. My experience has been quite the opposite. In multi threaded informs, I had to move init_snmp to the beginning of the process that spawns threads and I had to set several properties that are threads wide and if such properties were applied within the context of a thread then it crea

Re: Multi-threaded Net-SNMP Client

2012-09-09 Thread Katia S.
Well, conducting a fairly difficult research in the field of the multiple thread Net-SNMP applications, I found out that you cannot use threads whith the same "init_snmp(argv[0])" statement. The post I read did not give any other information, just this: you can have multiple sessions with the same

Re: Multi-threaded Net-SNMP Client

2012-09-07 Thread Nathan, Mukund
Hi Katia S: I have been using multiple threads where each thread starts a client and maintains a single session. I am using this for Informs as opposed to the get/set. In all the usage documentation it was found that we need to perform init_snmp("PROGNAME"), once for all threads. Each thread cre