Re: Threading and Net-SNMP

2005-08-12 Thread Gary Clark
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: net-snmp-users@lists.sourceforge.net
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
 Net-snmp-users@lists.sourceforge.net
 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Threading and Net-SNMP

2005-08-12 Thread Vili Germic

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: net-snmp-users@lists.sourceforge.net
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
Net-snmp-users@lists.sourceforge.net
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
Net-snmp-users@lists.sourceforge.net
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: Threading and Net-SNMP

2005-08-12 Thread Robert Story
On Thu, 11 Aug 2005 16:47:35 -0400 [EMAIL PROTECTED] wrote:
CRC I'm still having trouble finding my illegal instruction error and I've
CRC gotten to thinking about threads.  I have a multi-threaded program that
CRC sends traps from one thread and acts as a sub-agent in another thread. 
CRC Traps are asychronous and don't require any kind of session or state so
CRC this is all safe, right?

That has not been established. Basically, except for the single-session API in
worker threads, any other use of threads is untested, unsupported, and not
recommended. The supported method would be to use IPC to another process.

-- 
NOTE: messages sent directly to me, instead of the lists, will be deleted
  unless they are requests for paid consulting services.

Robert Story; NET-SNMP Junkie
Support: http://www.net-snmp.org/ irc://irc.freenode.net/#net-snmp  
Archive: http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users

You are lost in a twisty maze of little standards, all different. 


---
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Threading and Net-SNMP

2005-08-11 Thread cnelson
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users