Re: Threading and Net-SNMP

Vili Germic <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
I'm using SINGLE SESSION API (snmp_sess_opnen, snmp_sess_send,...) and 
standard posix threads and mutex locking in my multithreaded app for 
sending SNMP notifications. Everything works FINE for SENDING TRAPS and 
INFORMS! But, I'm having huge problem with handling snmp inform 
RESPONSES! Callback function defined in session is never called if I use 
single session API! So... If you don't need to handle response for 
inform, you CAN(actually MUST) use SINGLE SESSION API!

Best Regards, Vili

Gary Clark wrote:

>what I was told is that Net-SNMP is not thread safe. So be careful. Is this
>a Red-Hat 9 system?
>
>Cheers,
>Garyc
>
>----- Original Message -----
>From: <[email protected]>
>To: <[email protected]>
>Sent: Thursday, August 11, 2005 3:47 PM
>Subject: Threading and Net-SNMP
>
>
>  
>
>>I'm still having trouble finding my illegal instruction error and I've
>>gotten to thinking about threads.  I have a multi-threaded program that
>>sends traps from one thread and acts as a sub-agent in another thread.
>>Traps are asychronous and don't require any kind of session or state so
>>this is all safe, right?
>>
>>                                               Chris
>>
>>
>>-------------------------------------------------------
>>SF.Net email is Sponsored by the Better Software Conference & EXPO
>>September 19-22, 2005 * San Francisco, CA * Development Lifecycle
>>    
>>
>Practices
>  
>
>>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
>>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
>>_______________________________________________
>>Net-snmp-users mailing list
>>[email protected]
>>Please see the following page to unsubscribe or change other options:
>>https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>    
>>
>
>
>
>-------------------------------------------------------
>SF.Net email is Sponsored by the Better Software Conference & EXPO
>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
>_______________________________________________
>Net-snmp-users mailing list
>[email protected]
>Please see the following page to unsubscribe or change other options:
>https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>
>  
>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.