[SNMP4J] About UnknownHostException at TransportIpAddress class
Fabrice Bacchella
fabrice.bacchella at 9online.fr
Thu Sep 21 19:09:43 CEST 2006
Did you something like this :
Address address = new UdpAddress(InetAddress.getByName
("200.129.46.39"), 161);
Le 21 sept. 06 à 17:07, Nídia S. Campos a écrit :
> Hi,
> The follow code creates a java.net.UnknownHostException, but I
> think that
> this kind of address is ok....
>
> TransportIpAddress transportIpAddress = new TcpAddress();
>
> try {
> transportIpAddress.setTransportAddress(new OctetString("
> 200.129.46.39/161"));
> } catch (UnknownHostException e) {
> // TODO Auto-generated catch block
> e.printStackTrace();
> }
>
>
> May someone heelp me, please?
>
> Best regards,
> Nídia
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j
--
« Une demi-heure de méditation est essentielle sauf quand on est très
occupé. Alors une heure est nécessaire. »
Saint François de Sales
More information about the SNMP4J
mailing list