[SNMP4J] Address type and parse method
Marco.Bresciani at alcatel.it
Marco.Bresciani at alcatel.it
Tue Nov 14 10:52:29 CET 2006
Hello again,
another interesting constant to add could be the default SNMP port 161.
bye,
Marco
Frank Fock <fock at agentpp.com>
03/11/2006 23.21
To: Marco BRESCIANI/IT/ALCATEL at ALCATEL
cc: snmp4j at agentpp.org
Subject: Re: [SNMP4J] Address type and parse method
Hello Marco,
Good point. In version 1.8 the following constants will be part
of GenericAddress:
/**
* Default address type identifier for an UpdAddress.
*/
public static final String TYPE_UDP = "udp";
/**
* Default address type identifier for a TcpAddress.
*/
public static final String TYPE_TCP = "tcp";
/**
* Default address type identifier for an IpAddress.
*/
public static final String TYPE_IP = "ip";
Best regards,
Frank
Marco.Bresciani at alcatel.it wrote:
> Hello,
> with respect to this description
>
http://www.snmp4j.org/doc/org/snmp4j/smi/GenericAddress.html#parse(java.lang.String)
> ... Does an enum or a set of constants exists in order to have a
reference
> to allowed types for address?
>
> I found the address.properties file checking inside the JAr file and I
saw
> the "udp", "tcp" and "ip" Strings but... there is a reference for
> programmer? Can I use an enum or final static values? It's not very
> "polite" to write "udp" hard-coded in the code... :-)
>
> Thank you.
>
> Ing. Marco Bresciani
>
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list