/libcore/luni/src/main/java/java/net/ |
PlainSocketImpl.java | 26 import java.net.InetAddress; 50 private static InetAddress lastConnectedAddress; 78 public PlainSocketImpl(FileDescriptor fd, int localport, InetAddress addr, int port) { 127 public void initRemoteAddressAndPort(InetAddress remoteAddress, int remotePort) { 149 @Override protected void bind(InetAddress address, int port) throws IOException { 167 connect(InetAddress.getByName(aHost), aPort); 171 protected void connect(InetAddress anAddr, int aPort) throws IOException { 187 private void connect(InetAddress anAddr, int aPort, int timeout) throws IOException { 188 InetAddress normalAddr = anAddr.isAnyLocalAddress() ? InetAddress.getLocalHost() : anAddr [all...] |
DatagramSocket.java | 41 InetAddress address; 95 public DatagramSocket(int aPort, InetAddress addr) throws SocketException { 130 synchronized void createSocket(int aPort, InetAddress addr) throws SocketException { 144 * Gets the {@code InetAddress} instance representing the remote address to 150 public InetAddress getInetAddress() { 158 public InetAddress getLocalAddress() { 265 InetAddress packAddr = pack.getAddress(); 443 InetAddress addr = Inet4Address.ANY; 502 public void connect(InetAddress address, int port) {
|
Inet6Address.java | 29 * An IPv6 address. See {@link InetAddress}. 31 public final class Inet6Address extends InetAddress { 38 public static final InetAddress ANY = 44 public static final InetAddress LOOPBACK = 55 * Constructs an {@code InetAddress} representing the {@code address} and 127 Enumeration<InetAddress> addressList = nif.getInetAddresses(); 129 InetAddress ia = addressList.nextElement();
|
/frameworks/base/core/java/android/net/ |
LinkProperties.java | 24 import java.net.InetAddress; 65 private Collection<InetAddress> mDnses = new ArrayList<InetAddress>(); 100 for (InetAddress i : source.getDnses()) mDnses.add(i); 137 public Collection<InetAddress> getAddresses() { 138 Collection<InetAddress> addresses = new ArrayList<InetAddress>(); 148 public Collection<InetAddress> getAllAddresses() { 149 Collection<InetAddress> addresses = new ArrayList<InetAddress>(); [all...] |
VpnService.java | 36 import java.net.InetAddress; 302 private void check(InetAddress address, int prefixLength) { 326 public Builder addAddress(InetAddress address, int prefixLength) { 338 * using a numeric address string. See {@link InetAddress} for the 342 * @see #addAddress(InetAddress, int) 345 return addAddress(InetAddress.parseNumericAddress(address), prefixLength); 354 public Builder addRoute(InetAddress address, int prefixLength) { 372 * using a numeric address string. See {@link InetAddress} for the 376 * @see #addRoute(InetAddress, int) 379 return addRoute(InetAddress.parseNumericAddress(address), prefixLength) [all...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
MessageChannel.java | 46 import java.net.InetAddress; 132 protected abstract InetAddress getPeerInetAddress(); 143 public abstract InetAddress getPeerPacketSourceAddress(); 168 protected abstract void sendMessage(byte[] message, InetAddress receiverAddress, 201 InetAddress hopAddr = InetAddress.getByName(hop.getHost()); 246 public void sendMessage(SIPMessage sipMessage, InetAddress receiverAddress, int receiverPort) 261 InetAddress sourceInetAddress = InetAddress.getByName(sourceAddress); 272 public static String getKey(InetAddress inetAddr, int port, String transport) [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldServerSocketTest.java | 23 import java.net.InetAddress; 57 InetSocketAddress theAddress = new InetSocketAddress(InetAddress 65 + (new InetSocketAddress(InetAddress.getLocalHost(), 68 new InetSocketAddress(InetAddress 76 InetSocketAddress clAddress = new InetSocketAddress(InetAddress 109 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); 162 ServerSocket ss = new ServerSocket(0, 10, InetAddress.getLocalHost()); 164 new ServerSocket(ss.getLocalPort(), 10, InetAddress.getLocalHost()); 171 new ServerSocket(65536, 10, InetAddress.getLocalHost()); 346 protected void connect(InetAddress arg0, int arg1) throws IOException [all...] |
OldDatagramSocketImplFactoryTest.java | 25 import java.net.InetAddress; 134 protected void bind(int arg0, InetAddress arg1) throws SocketException { 157 protected void join(InetAddress arg0) throws IOException { 165 protected void leave(InetAddress arg0) throws IOException { 173 public int peek(InetAddress arg0) throws IOException {
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoNetworkStatePermissionTest.java | 23 import java.net.InetAddress; 173 InetAddress.getByName("www.google.com");
|
/external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/ |
DefaultSSLServerSocketFactoryTest.java | 22 import java.net.InetAddress; 63 * Class under test for ServerSocket createServerSocket(int, int, InetAddress) 68 f.createServerSocket(0, 10, InetAddress.getLocalHost());
|
/external/apache-http/src/org/apache/http/conn/routing/ |
HttpRoute.java | 34 import java.net.InetAddress; 60 private final InetAddress localAddress; 95 private HttpRoute(InetAddress local, 136 public HttpRoute(HttpHost target, InetAddress local, HttpHost[] proxies, 159 public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, 175 public HttpRoute(HttpHost target, InetAddress local, boolean secure) { 203 public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, 264 public final InetAddress getLocalAddress() {
|
/external/apache-http/src/org/apache/http/impl/conn/ |
DefaultHttpRoutePlanner.java | 35 import java.net.InetAddress; 102 final InetAddress local =
|
/external/apache-http/src/org/apache/http/protocol/ |
RequestTargetHost.java | 35 import java.net.InetAddress; 79 InetAddress address = ((HttpInetConnection) conn).getRemoteAddress();
|
/external/guava/guava/src/com/google/common/net/ |
HostSpecifier.java | 22 import java.net.InetAddress; 44 * {@link java.net.InetAddress} instance from it rather than using this class. 86 InetAddress addr = null;
|
/external/smack/src/org/xbill/DNS/ |
APLRecord.java | 50 Element(boolean negative, InetAddress address, int prefixLength) { 63 sb.append(((InetAddress) address).getHostAddress()); 163 InetAddress addr = InetAddress.getByAddress(data); 227 InetAddress address = InetAddress.getByAddress(bytes); 269 InetAddress addr = (InetAddress) element.address;
|
/frameworks/base/core/java/android/net/dhcp/ |
DhcpDiscoverPacket.java | 19 import java.net.InetAddress; 46 InetAddress destIp = Inet4Address.ALL;
|
/libcore/crypto/src/main/java/org/conscrypt/ |
OpenSSLServerSocketFactoryImpl.java | 20 import java.net.InetAddress; 70 InetAddress iAddress) throws IOException {
|
SSLServerSocketFactoryImpl.java | 21 import java.net.InetAddress; 117 * @see javax.net.ServerSocketFactory#createServerSocket(int,int,InetAddress) 121 InetAddress iAddress) throws IOException {
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
SSLServerSocketFactoryTest.java | 20 import java.net.InetAddress; 57 InetAddress arg2) throws IOException {
|
/cts/tests/tests/net/src/android/net/ipv6/cts/ |
PingTest.java | 29 import java.net.InetAddress; 81 InetAddress address, byte[] packet) throws ErrnoException, IOException { 94 InetAddress dest, byte[] sent) throws ErrnoException, IOException { 132 InetAddress ipv6Loopback = InetAddress.getByName(null);
|
/external/smack/src/org/jivesoftware/smack/proxy/ |
HTTPProxySocketFactory.java | 25 import java.net.InetAddress; 56 public Socket createSocket(String host ,int port, InetAddress localHost, 63 public Socket createSocket(InetAddress host, int port) 70 public Socket createSocket( InetAddress address, int port, 71 InetAddress localAddress, int localPort)
|
Socks5ProxySocketFactory.java | 23 import java.net.InetAddress; 49 public Socket createSocket(String host ,int port, InetAddress localHost, 58 public Socket createSocket(InetAddress host, int port) 66 public Socket createSocket( InetAddress address, int port, 67 InetAddress localAddress, int localPort)
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
AccessPointParserHelper.java | 37 import java.net.InetAddress; 120 InetAddress mInetAddr = null; 300 if (!InetAddress.isNumeric(ipAddr)) { 303 mInetAddr = InetAddress.getByName(ipAddr); 312 if (!InetAddress.isNumeric(gwAddr)) { 315 mLinkProperties.addRoute(new RouteInfo(InetAddress.getByName(gwAddr))); 336 if (!InetAddress.isNumeric(dnsAddr)) { 339 mLinkProperties.addDns(InetAddress.getByName(dnsAddr)); 348 if (!InetAddress.isNumeric(dnsAddr)) { 351 mLinkProperties.addDns(InetAddress.getByName(dnsAddr)) [all...] |
/libcore/luni/src/main/java/libcore/io/ |
Os.java | 20 import java.net.InetAddress; 31 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; 35 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; 52 public InetAddress[] getaddrinfo(String node, StructAddrinfo hints) throws GaiException; 58 public String getnameinfo(InetAddress address, int flags) throws GaiException; 66 public InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException; 74 public InetAddress inet_pton(int family, String address); 75 public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException; 105 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException [all...] |
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestSSLContext.java | 20 import java.net.InetAddress; 91 public final InetAddress host; 105 InetAddress host, 178 InetAddress host = InetAddress.getLocalHost(); 280 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 284 public Socket createSocket(InetAddress host, int port) throws IOException { 287 public Socket createSocket(InetAddress address, int port, 288 InetAddress localAddress, int localPort) throws IOException {
|