Hi, The local address will not help. The recommended solution is using a dedicated TransportMapping for incoming messages.
Best regards, Frank On 09.09.2010 14:49, Rodrigues, Rui 1. (NSN - PT/Amadora) wrote: > Hello, > > We're using snmp4j in a manager. The manager can connect to several > agent simultaneously using TCP. To receive notifications (traps) from > the agents, we need to register in the agent stating the local port > where to send the notifications. The problem is that info is not > available in the API. > We're using new DefaultTcpTransportMapping() to create the tcpTransport. > We use the same to connect to all the agents. > > We checked that the list of sockets is available in the > DefaultTcpTransportMapping class as private Map sockets = new > Hashtable();. But since its private we can't access it to read the local > address for a connection to a specific agent. > > What would you recommend to overcome this issue? Would it be possible to > add a way to know the local address used to connect to a specific agent? > > Best Regards, > RAR > _______________________________________________ > SNMP4J mailing list > [email protected] > http://lists.agentpp.org/mailman/listinfo/snmp4j -- AGENT++ http://www.agentpp.com http://www.snmp4j.com http://www.mibexplorer.com http://www.mibdesigner.com _______________________________________________ SNMP4J mailing list [email protected] http://lists.agentpp.org/mailman/listinfo/snmp4j
