[SNMP4J] Address type and parse method
Frank Fock
fock at agentpp.com
Tue Nov 14 23:12:25 CET 2006
OK, I have added
public static final int DEFAULT_COMMAND_RESPONDER_PORT = 161;
public static final int DEFAULT_NOTIFICATION_RECEIVER_PORT = 162;
to SnmpConstants.java.
Best regards,
Frank
Marco.Bresciani at alcatel.it wrote:
> 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