The processPdu method takes a CommandResponderEvent object.

Using this, you can do

 > UdpAddress udpHostAdress = (UdpAddress) event.getStateReference().
>
> getAddress();
>
> Then, you can do
>  >  udpHostAdress.getInetAddress().getHostAddress()
>
> Cheers



On Thu, May 20, 2010 at 10:15 AM, jaikar gupta <gupta.jai...@gmail.com>wrote:

> Hello Friends,
>
> I would like to know, how i can get the IP address and sender OID of trap
> sending equipment in processPdu method.
>
>
> Thanks & Regards
> Jaikar Gupta
> _______________________________________________
> SNMP4J mailing list
> SNMP4J@agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
>
_______________________________________________
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to