/libcore/luni/src/main/java/java/net/ |
DatagramSocketImpl.java | 57 protected abstract void bind(int port, InetAddress addr) throws SocketException; 126 protected abstract void join(InetAddress addr) throws IOException; 154 protected abstract void leave(InetAddress addr) throws IOException; 181 protected abstract int peek(InetAddress sender) throws IOException; 245 protected void connect(InetAddress inetAddr, int port)
|
InetSocketAddress.java | 32 private final InetAddress addr; 55 this((InetAddress) null, port); 69 public InetSocketAddress(InetAddress address, int port) { 102 InetAddress addr = null; 105 addr = InetAddress.getByName(hostname); 117 * hostname into an {@code InetAddress}. The address field is marked as 143 public final InetAddress getAddress() { 148 * Returns the hostname, doing a reverse DNS lookup on the {@code InetAddress} if no 157 * Returns the hostname if known, or the result of {@code InetAddress.getHostAddress}.
|
Inet4Address.java | 26 * An IPv4 address. See {@link InetAddress}. 28 public final class Inet4Address extends InetAddress { 35 public static final InetAddress ANY = 41 public static final InetAddress ALL = 48 public static final InetAddress LOOPBACK =
|
InetUnixAddress.java | 24 * An AF_UNIX address. See {@link InetAddress}. 27 public final class InetUnixAddress extends InetAddress { 29 * Constructs an AF_UNIX InetAddress for the given path. 36 * Constructs an AF_UNIX InetAddress for the given path. 43 * Returns a string form of this InetAddress.
|
InterfaceAddress.java | 30 private final InetAddress address; 35 private final InetAddress broadcastAddress; 108 * Returns the InetAddress for this address. 110 public InetAddress getAddress() { 117 public InetAddress getBroadcast() {
|
SocketImpl.java | 39 protected InetAddress address; 87 protected abstract void bind(InetAddress address, int port) throws IOException; 120 protected abstract void connect(InetAddress address, int port) 156 protected InetAddress getInetAddress() {
|
/libcore/luni/src/main/java/javax/net/ssl/ |
DefaultSSLSocketFactory.java | 21 import java.net.InetAddress; 61 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 67 public Socket createSocket(InetAddress host, int port) throws IOException { 72 public Socket createSocket(InetAddress address, int port, InetAddress localAddress,
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
SSLSocketFactoryImpl.java | 5 import java.net.InetAddress; 56 * @see javax.net.SocketFactory#createSocket(java.net.InetAddress, int) 59 public Socket createSocket(InetAddress arg0, int arg1) throws IOException { 65 * @see javax.net.SocketFactory#createSocket(java.lang.String, int, java.net.InetAddress, int) 68 public Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException, UnknownHostException { 74 * @see javax.net.SocketFactory#createSocket(java.net.InetAddress, int, java.net.InetAddress, int) 77 public Socket createSocket(InetAddress arg0, int arg1, InetAddress arg2, int arg3) throws IOException {
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
NetworkInterfaceTest.java | 20 import java.net.InetAddress; 68 InetAddress theAddress = (InetAddress) theAddresses 77 InetAddress theAddress = (InetAddress) theAddresses 90 InetAddress theAddress = (InetAddress) addresses.nextElement(); 100 InetAddress theAddress = (InetAddress) addresses 112 InetAddress nextAddress = (InetAddress) reducedAddresse [all...] |
DatagramPacketTest.java | 23 import java.net.InetAddress; 66 * java.net.InetAddress, int) 70 InetAddress.getLocalHost(), 0); 71 assertEquals("Wrong host", InetAddress.getLocalHost(), dp.getAddress()); 79 * java.net.InetAddress, int) 83 InetAddress.getLocalHost(), 0); 84 assertEquals("Wrong address", InetAddress.getLocalHost(), dp 95 InetAddress.getLocalHost(), 0); 96 assertEquals("Incorrect address returned", InetAddress.getLocalHost(), 130 InetAddress.getLocalHost(), 1000) [all...] |
ConnectExceptionTest.java | 21 import java.net.InetAddress;
|
InterfaceAddressTest.java | 22 import java.net.InetAddress; 88 InetAddress addr1 = interfaceAddr.getAddress(); 90 InetAddress addr2 = anotherInterfaceAddr.getAddress(); 103 InetAddress addr = interfaceAddr.getAddress(); 104 InetAddress addr1 = interfaceAddr.getBroadcast(); 105 InetAddress addr2 = anotherInterfaceAddr.getBroadcast(); 152 Enumeration<InetAddress> addresses = theInterface
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
ClientSocketHandler.java | 8 import java.net.InetAddress; 17 private InetAddress mAddress; 19 public ClientSocketHandler(Handler handler, InetAddress groupOwnerAddress) {
|
/external/nist-sip/java/gov/nist/core/net/ |
SslNetworkLayer.java | 32 import java.net.InetAddress;
89 InetAddress bindAddress) throws IOException {
93 public Socket createSocket(InetAddress address, int port)
102 public DatagramSocket createDatagramSocket(int port, InetAddress laddr)
109 InetAddress bindAddress) throws IOException {
115 public SSLSocket createSSLSocket(InetAddress address, int port)
121 public SSLSocket createSSLSocket(InetAddress address, int port,
122 InetAddress myAddress) throws IOException {
127 public Socket createSocket(InetAddress address, int port,
128 InetAddress myAddress) throws IOException { [all...] |
/external/apache-http/src/org/apache/http/conn/ |
ClientConnectionOperator.java | 35 import java.net.InetAddress; 89 InetAddress local,
|
MultihomePlainSocketFactory.java | 35 import java.net.InetAddress; 51 * provided the same hostname resolves to multiple {@link InetAddress}es. Please note 52 * the {@link #connectSocket(Socket, String, int, InetAddress, int, HttpParams)} 86 * Attempts to connects the socket to any of the {@link InetAddress}es the 101 InetAddress localAddress, int localPort, 128 InetAddress[] inetadrs = InetAddress.getAllByName(host); 129 List<InetAddress> addresses = new ArrayList<InetAddress>(inetadrs.length); 134 for (InetAddress address: addresses) [all...] |
/external/apache-http/src/org/apache/http/conn/scheme/ |
SocketFactory.java | 35 import java.net.InetAddress; 99 InetAddress localAddress,
|
/external/smack/src/org/xbill/DNS/ |
Address.java | 10 * those in the java.net.InetAddress class. 247 private static InetAddress 250 return InetAddress.getByAddress(name, a.getAddress().getAddress()); 259 public static InetAddress 275 public static InetAddress [] 278 InetAddress addr = getByAddress(name); 279 return new InetAddress[] {addr}; 282 InetAddress [] addrs = new InetAddress[records.length]; 296 public static InetAddress [all...] |
ARecord.java | 50 ARecord(Name name, int dclass, long ttl, InetAddress address) { 64 InetAddress address = st.getAddress(Address.IPv4); 75 public InetAddress 78 return InetAddress.getByAddress(name.toString(),
|
/libcore/luni/src/main/java/javax/net/ |
DefaultServerSocketFactory.java | 21 import java.net.InetAddress; 42 public ServerSocket createServerSocket(int port, int backlog, InetAddress iAddress)
|
ServerSocketFactory.java | 21 import java.net.InetAddress; 100 public abstract ServerSocket createServerSocket(int port, int backlog, InetAddress iAddress)
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
SSLSocketTest.java | 22 import java.net.InetAddress; 60 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port) 63 int sport = startServer("Cons InetAddress,I"); 66 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport); 72 getSSLSocket(InetAddress.getLocalHost(), sport + 1); 79 getSSLSocket(InetAddress.getLocalHost(), invalidPort[i]); 87 * javax.net.ssl.SSLSocket#SSLSocket(InetAddress address, int port, 88 * InetAddress clientAddress, int clientPort) 91 int sport = startServer("Cons InetAddress,I,InetAddress,I") [all...] |
/frameworks/base/core/java/android/net/ |
RouteInfo.java | 23 import java.net.InetAddress; 54 private final InetAddress mGateway; 80 public RouteInfo(LinkAddress destination, InetAddress gateway, String iface) { 111 public RouteInfo(LinkAddress destination, InetAddress gateway) { 115 public RouteInfo(InetAddress gateway) { 123 public static RouteInfo makeHostRoute(InetAddress host, String iface) { 127 public static RouteInfo makeHostRoute(InetAddress host, InetAddress gateway, String iface) { 161 public InetAddress getGateway() { 246 InetAddress destAddr = null [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldAuthenticatorTest.java | 20 import java.net.InetAddress; 29 InetAddress addr = InetAddress.getLocalHost(); 37 addr = InetAddress.getLocalHost();
|
OldDatagramSocketTest.java | 29 import java.net.InetAddress; 92 public DatagramServer(int aPort, InetAddress address) 184 // Test for method java.net.DatagramSocket(int, java.net.InetAddress) 187 ds = new java.net.DatagramSocket(portNumber, InetAddress 192 .getLocalAddress().equals(InetAddress.getLocalHost())); 211 new java.net.DatagramSocket(8080, InetAddress 226 new java.net.DatagramSocket(1, InetAddress 241 dp = new DatagramPacket("Test String".getBytes(), 11, InetAddress 259 InetAddress inetAddress = InetAddress.getLocalHost() [all...] |