Parent Directory | Revision Log | Patch
revision 1.39 by mkoch, Mon Apr 11 18:58:38 2005 UTC | revision 1.40 by mkoch, Tue Apr 26 07:44:07 2005 UTC | |
---|---|---|
# | Line 197 public class InetAddress implements Seri | Line 197 public class InetAddress implements Seri |
197 | */ | */ |
198 | InetAddress(byte[] ipaddr, String hostname) | InetAddress(byte[] ipaddr, String hostname) |
199 | { | { |
200 | addr = new byte[ipaddr.length]; | addr = (null == ipaddr) ? null : (byte[]) ipaddr.clone(); |
201 | hostName = hostname; | |
202 | for (int i = 0; i < ipaddr.length; i++) | |
addr[i] = ipaddr[i]; | ||
this.hostName = hostname; | ||
203 | lookup_time = System.currentTimeMillis(); | lookup_time = System.currentTimeMillis(); |
204 | ||
205 | family = 2; /* AF_INET */ | family = 2; /* AF_INET */ |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |