SOCK_STARTUP and SOCK_CLEANUP

Lawrence Wong <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,
I'm trying to write an application that starts a few threads to handle SNMP requests to multiple hosts. Let's say 1 main thread starts 3 threads where each worker thread handles SNMP requests for 2 hosts each [6 hosts total]. I was wondering where I should be putting 'SOCK_STARTUP' and 'SOCK_CLEANUP'? Should they be called once and go in the main thread before worker threads are started? Or should they be put in each worker thread and be called before snmp_sess_open? I don't understand what both functions do so I don't know when they should be called or where they should go in a multithreaded application.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/

_______________________________________________
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.