[SNMP4J] IOException and Snmp.send()

Kevin J. Schmidt kjschmidt at gmail.com
Thu Mar 24 17:10:55 CET 2005


Hi,

Given the following code:

try
{
 mSnmp.send(request, mTarget);
}
catch(IOException ioex){ // do something.... }

At what point would the IOException be thrown? I've tried sending
traps in the following scenarios:

localhost not listening on trap port
remote IP not listening on trap port
bogus IP (obviously) not listening on trap port

and could not get IOException to be raised at all. Maybe in these
cases it doesn't make sense?

Thanks,
-- 
Kevin J. Schmidt
<kjschmidt at gmail.com>



More information about the SNMP4J mailing list