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 <thexte...@gmail.com> wrote:

> 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 = snmp_sess_synch_response(sp, req, &
> resp);" line it just doesn't like.
>
> Thanks,
> T
>
> On Fri, Apr 1, 2011 at 8:41 PM, Dave Shield <d.t.shi...@liverpool.ac.uk>wrote:
>
>> On 1 April 2011 16:47, th exterit <thexte...@gmail.com> 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
>>
>
>
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to