Hi, I have a subagent using the AgentX protocol. From the same process I need to make requests to the master agent using snmp_synch_response(). To complicate matters, requests for values that have handlers registered in the process, will also be routed through the master agent.
That is: there are cases where I will make a request to the master agent, which will then be routed back to me, to be handled by the same process that sent the request. This may seem circuitous, but is deemed necessary to ensure consistent failure detection should communications with the master agent fail. The simplest solution is to run agent_check_and_process() in a thread by itself within the same process. I know from previous posts that the snmp library is _not_ thread safe (version 5.4.1). However I am hoping that as the two APIs are orthogonal this usage should be okay. Cheers, Marc ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
