Re: [pysnmp-dev] Regarding use of Dispatcher with Multiprocessing
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2015-02-26 19:39:16
|
Hi Ani, At what point you are going to employ threading? Just for SNMP receiving part (what is not easy since a single instance of SNMP engine is not MT-safe) or for some sort of custom processing logic beyond SNMP engine? -ilya > On 24 Feb 2015, at 09:44, Ani A <ani...@gm...> wrote: > > Hello, > > I was running through the examples in pysnmp (for Trap receiver with V3 case) > and I have a few doubts (maybe trivial! but somehow I am not getting it) > > I want to use pysnmp, with Python's Multiprocessing module, so in > each Process's callback function, do I run the following ? > > try: > snmpEngine.transportDispatcher.runDispatcher() > except: > snmpEngine.transportDispatcher.closeDispatcher() > raise > > i.e, what should my main-loop wait on? , since I have another Queue as well > which I need to check. > > Thanks. > — > Ani |