Dear All
I have not really understood how to do thread safe programming in this case.
I have read the README.thread, but it is not very clear what do I need to do in
which thread. I have main thread sending traps based on messages received from
the other application and the other thread handles SNMP get/sets.
In the main thread at the end it uses send_v2trap to send the trap.
Where as the other thread uses agent_check_and_process().
I do not really understand how I can make the net-snmp know about the session
created using snmp_sess_open().
I do not understand how can I call snmp_sess_send(sessp, pdu) function, as this
function is probably called internally by the functions I am calling.
I would really appreciate if anybody can share any knowledge about creating a
thread safe program.
Thanks in advance
Reddy
Robert Story <[EMAIL PROTECTED]> wrote: On Tue, 2 Jan 2007 07:55:27 -0800 (PST)
Venkata wrote:
VG> I am running net-snmp 5.4 on RHEL 4.0 64 bit OS. I have been seeing the
subagent crashing sometimes while sending traps.
Have you tested on RHEL 32 bit? Does it crash as well?
VG> #11 0x0000000000406142 in HandleNormalMsgThread () at netman.cpp:173
Have you read README.threads? You have to be very careful using the library
with threads, because a good deal of the library is not thread-safe.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders