KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > net > InetAddressImpl


1 /*
2  * @(#)InetAddressImpl.java 1.6 05/11/17
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.net;
9 import java.io.IOException JavaDoc;
10 /*
11  * Package private interface to "implementation" used by
12  * {@link InetAddress}.
13  * <p>
14  * See {@link java.net.Inet4AddressImp} and
15  * {@link java.net.Inet6AddressImp}.
16  *
17  * @since 1.4
18  */

19 interface InetAddressImpl {
20
21     String JavaDoc getLocalHostName() throws UnknownHostException JavaDoc;
22     InetAddress JavaDoc[]
23         lookupAllHostAddr(String JavaDoc hostname) throws UnknownHostException JavaDoc;
24     String JavaDoc getHostByAddr(byte[] addr) throws UnknownHostException JavaDoc;
25
26     InetAddress JavaDoc anyLocalAddress();
27     InetAddress JavaDoc loopbackAddress();
28     boolean isReachable(InetAddress JavaDoc addr, int timeout, NetworkInterface JavaDoc netif,
29             int ttl) throws IOException JavaDoc;
30 }
31
32
Popular Tags