Re: Thread safety

2011-04-02 Thread th exterit
Working now, the problem was you need to pass the void pointer to snmp_sess_synch_response(), not the session pointer. T On Fri, Apr 1, 2011 at 10:35 PM, th exterit wrote: > I followed README.threads but it still kept tripping up on the > corresponding snmp_sess_synch_response() function. > > I

Re: Thread safety

2011-04-01 Thread th exterit
I followed README.threads but it still kept tripping up on the corresponding snmp_sess_synch_response() function. I would be grateful if anyone would take a look at my code (edited for brevity) and spot anything I'm doing wrong - http://pastebin.com/FxQ2AuCQ Theres something about that "status =

Re: Thread safety

2011-04-01 Thread th exterit
Many thanks Dave, will give it a go. On Fri, Apr 1, 2011 at 8:41 PM, Dave Shield wrote: > On 1 April 2011 16:47, th exterit wrote: > > Now, I've only just read that Net-SNMP isn't strictly thread safe. > > Is there any way around this at all? > > Use the "Single Session" style of routines (s

Re: Thread safety

2011-04-01 Thread Dave Shield
On 1 April 2011 16:47, th exterit wrote: >  Now, I've only just read that Net-SNMP isn't strictly thread safe. >   Is there any way around this at all? Use the "Single Session" style of routines (snmp_sess_*) See README.threads for details Dave