[SNMP4J] Asynchronous Messages
Frank Fock
fock at agentpp.com
Fri Dec 3 03:22:46 CET 2010
Hi,
You will always receive a "null"
response, if you do not cancel
the request. That's because it
the runs until a timeout is reached
and returns that timeout info
as a null response.
Many agents do not respond on
broadcast messages, thus it is
not a good idea to count on it.
Best regards,
Frank
On 02.12.2010 14:57, Marcel Bassuener wrote:
> Hello,
> I don't get asynchrnuos messeges to work.
>
> ResponseListener listener = new ResponseListener() {
> public void onResponse(ResponseEvent event) {
> System.out.println(event.getPeerAddress());
> }
> };
>
> snmp.send(request, target, usm, listener);
>
> The answer is everytime "null", but if i try the same with synch
> messages it works.
>
> Or do you have an other suggestion how I can react on multible
> responses, because the request goes to the broadcast address of the
> Network (f.e. 192.168.11.255)
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list