[SNMP4J] (no subject)

Frank Fock fock at agentpp.com
Wed Nov 9 21:33:43 CET 2005


Hi Angel,

using
responsePDU.setRequestID(new 
Integer32(requestPDU.getRequestID().getValue());
would be more safe in a multi-threaded environment.

Best regards,
Frank

Angel Angelov wrote:

>Hi Guys,
>I'm new to this list.
>At first I want to thank you for the great snmp library. :-)
>
>I have some problems implementing the CommandResponder interface.
>When I receive GET/GETNEXT PDU, I create a RESPONSE PDU.
>I set the to the response pdu the same request id as the request pdu by:
>responsePDU.setRequestID(requestPDU.getRequestID());
>
>Some times this source code sends back a request id different from the incoming request id!
>Here is an example:
>GET request ID  -> 0x87c63fd7
>RESPONSE request ID -> 0x3f9119cf
>I cached the data by sniffing my udp packets on the network.
>
>And as you know, if the request id's are not matching, the agent ignore them....
>
>Do somebody have a suggestion for a work around for the problem?
>Thanks.
>
>Regards,
>Angel 
>             
>_______________________________________________
>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