[SNMP4J] snmp trap receivers are not blocking

Frank Fock fock at agentpp.com
Wed Mar 18 22:45:27 CET 2009


Hi Karthik,

Call Thread.sleep(1000000) after listen() or
wait on a semaphore that is notified by a
CommandResponder listener.

Best regards,
Frank

Karthik Krishnamurthy wrote:
> Dear guys,
> 
> I want to develop a snmp trap receiver that receives traps without stopping.
> But Snmp.listen() method is not  blocking. So the program stops. How can I
> achieve what I want.
> 
> Cant find the previous posts on this. Pls help.
> 
> Regards
> 
> Karthik
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list