in reply to threads and SNMP Session
I think you may be out of luck with using this module and threads together, From a cursory browse of the XS component of this module, it seems to make extensive use of static data areas. If my reading is correct, the module will be trying to reuse those same static C variables in conjunction with all your threads, and that obviously isn't going to work.
However, from a cursory reading of the docs, you probably don't need to be using threading or forks for this. The module has built in asynchronous capabilities. You simply pass a callback address on each (f)get(next)() of set() call and then enter it's event loop &SNMP::MainLoop([<timeout>, [<callback>]]) and your queries will call your code when the results arrive.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: threads and SNMP Session
by Otogi (Beadle) on Dec 20, 2005 at 00:00 UTC | |
by BrowserUk (Patriarch) on Dec 20, 2005 at 00:14 UTC |