/libcore/luni/src/test/java/libcore/java/net/ |
InetSocketAddressTest.java | 20 import java.net.InetSocketAddress; 26 new InetSocketAddress("127.0.0.1", -1); 31 new InetSocketAddress("127.0.0.1", 65536); 60 InetSocketAddress isa = new InetSocketAddress(ia, 80); 65 InetSocketAddress isa = new InetSocketAddress((InetAddress)null, 80); 69 new InetSocketAddress(InetAddress.getByName("localhost"), 65536); 75 new InetSocketAddress(InetAddress.getByName("localhost"), -1); 82 InetSocketAddress isa = new InetSocketAddress(65535) [all...] |
OldProxyTest.java | 18 import java.net.InetSocketAddress; 25 private SocketAddress address = new InetSocketAddress("127.0.0.1", 1234); 40 SocketAddress address1 = new InetSocketAddress("127.0.0.1", 1234); 52 SocketAddress address2 = new InetSocketAddress("127.0.0.1", 1235);
|
SocketTest.java | 24 import java.net.InetSocketAddress; 55 s.bind(new InetSocketAddress("localhost", 0)); 91 InetSocketAddress listenAddr = new InetSocketAddress(host, 0); 101 InetSocketAddress addr = new InetSocketAddress(host, ssc.socket().getLocalPort()); 112 InetSocketAddress outRemoteAddress = (InetSocketAddress) out.socket().getRemoteSocketAddress(); 113 InetSocketAddress outLocalAddress = (InetSocketAddress) out.socket().getLocalSocketAddress() [all...] |
OldUnixSocketTest.java | 25 import java.net.InetSocketAddress; 39 pingClient.connect(new InetSocketAddress( 89 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(),
|
/libcore/luni/src/main/java/java/net/ |
InetSocketAddress.java | 27 public class InetSocketAddress extends SocketAddress { 39 public InetSocketAddress() { 54 public InetSocketAddress(int port) { 69 public InetSocketAddress(InetAddress address, int port) { 89 public InetSocketAddress(String host, int port) { 94 * Internal constructor for InetSocketAddress(String, int) and 97 InetSocketAddress(String hostname, int port, boolean needResolved) { 116 * Creates an {@code InetSocketAddress} without trying to resolve the 124 * @return the created InetSocketAddress instance. 129 public static InetSocketAddress createUnresolved(String host, int port) [all...] |
DatagramSocket.java | 393 if (!(localAddr instanceof InetSocketAddress)) { 394 throw new IllegalArgumentException("Local address not an InetSocketAddress: " + 397 checkPort(((InetSocketAddress) localAddr).getPort()); 445 if (!(localAddr instanceof InetSocketAddress)) { 446 throw new IllegalArgumentException("Local address not an InetSocketAddress: " + 449 InetSocketAddress inetAddr = (InetSocketAddress) localAddr; 473 if (!(peer instanceof InetSocketAddress)) { 474 throw new IllegalArgumentException("peer not an InetSocketAddress: " + peer.getClass()); 477 InetSocketAddress isa = (InetSocketAddress) peer [all...] |
DatagramPacket.java | 299 return new InetSocketAddress(getAddress(), getPort()); 309 if (!(sockAddr instanceof InetSocketAddress)) { 310 throw new IllegalArgumentException("Socket address not an InetSocketAddress: " + 313 InetSocketAddress inetAddr = (InetSocketAddress) sockAddr;
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
InetSocketAddressTest.java | 19 import java.net.InetSocketAddress; 29 * @tests java.net.InetSocketAddress#InetSocketAddress(String, int) 33 InetSocketAddress address = new InetSocketAddress("127.0.0.1", 0); 41 * @tests java.net.InetSocketAddress#createUnresolved(String, int) 49 InetSocketAddress isa = InetSocketAddress.createUnresolved( 59 * @tests java.net.InetSocketAddress#createUnresolved(String, int) 66 InetSocketAddress.createUnresolved [all...] |
DatagramPacketTest.java | 24 import java.net.InetSocketAddress; 227 InetSocketAddress theAddress = new InetSocketAddress(InetAddress 233 new InetSocketAddress(thePacket.getAddress(), thePacket 268 InetSocketAddress theAddress = new InetSocketAddress(InetAddress 274 new InetSocketAddress(thePacket.getAddress(), thePacket 287 InetSocketAddress theAddress = new InetSocketAddress(InetAddress 328 InetSocketAddress theAddress = new InetSocketAddress(InetAddres [all...] |
SocketTest.java | 27 import java.net.InetSocketAddress; 49 InetSocketAddress addr = new InetSocketAddress(host, port); 77 new InetSocketAddress(host, port).getAddress()); 162 InetSocketAddress bogusAddress = new InetSocketAddress(InetAddress 174 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0)); 180 new InetSocketAddress(InetAddress.getLocalHost(), portNumber), 185 InetSocketAddress theAddress = new InetSocketAddress(InetAddres [all...] |
ServerSocketTest.java | 27 import java.net.InetSocketAddress; 386 InetSocketAddress theAddress = new InetSocketAddress(InetAddress 391 "Returned incorrect InetSocketAddress(2):" 394 + (new InetSocketAddress(InetAddress.getLocalHost(), 397 new InetSocketAddress(InetAddress 405 InetSocketAddress clAddress = new InetSocketAddress(InetAddress 425 theAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0); 439 theSocket.bind(new InetSocketAddress(InetAddres [all...] |
/libcore/support/src/test/java/tests/net/ |
StuckServer.java | 21 import java.net.InetSocketAddress; 33 private InetSocketAddress address; 47 this.address = (InetSocketAddress) serverSocket.getLocalSocketAddress(); 65 this.address = new InetSocketAddress(testNet1, 80); 69 public InetSocketAddress getLocalSocketAddress() {
|
/external/apache-http/src/org/apache/http/conn/scheme/ |
PlainSocketFactory.java | 36 import java.net.InetSocketAddress; 105 InetSocketAddress isa = 106 new InetSocketAddress(localAddress, localPort); 112 InetSocketAddress remoteAddress; 114 remoteAddress = new InetSocketAddress(this.nameResolver.resolve(host), port); 116 remoteAddress = new InetSocketAddress(host, port);
|
/external/okhttp/src/main/java/com/squareup/okhttp/ |
Route.java | 18 import java.net.InetSocketAddress; 25 final InetSocketAddress inetSocketAddress; 28 public Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress, 32 if (inetSocketAddress == null) throw new NullPointerException("inetSocketAddress == null"); 35 this.inetSocketAddress = inetSocketAddress; 57 /** Returns the {@link InetSocketAddress} of this route. * [all...] |
/external/smack/src/org/xbill/DNS/ |
UDPClient.java | 51 bind_random(InetSocketAddress addr) throws IOException 64 InetSocketAddress temp; 71 temp = new InetSocketAddress(addr.getAddress(), 74 temp = new InetSocketAddress(port); 87 (addr instanceof InetSocketAddress && 88 ((InetSocketAddress)addr).getPort() == 0)) 90 bind_random((InetSocketAddress) addr);
|
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/ |
ClientSocketHandler.java | 9 import java.net.InetSocketAddress; 29 socket.connect(new InetSocketAddress(mAddress.getHostAddress(),
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
LocalPortForwarder.java | 8 import java.net.InetSocketAddress; 44 LocalPortForwarder(ChannelManager cm, InetSocketAddress addr, String host_to_connect, int port_to_connect)
|
/frameworks/base/tests/CoreTests/android/core/ |
SocketTest.java | 24 import java.net.InetSocketAddress; 61 ss.bind(new InetSocketAddress("127.0.0.1", port)); 89 s2.bind(new InetSocketAddress((InetAddress) null, 12345)); 111 InetSocketAddress addr = new InetSocketAddress(8383); 194 // sock.connect(new InetSocketAddress(NON_EXISTING_ADDRESS, 80), timeout); 226 InetSocketAddress scktAddrss = new InetSocketAddress(KNOW_GOOD_ADDRESS, 264 client.connect(new InetSocketAddress(PACKAGE_DROPPING_ADDRESS, 1357));
|
/external/smack/src/org/jivesoftware/smack/proxy/ |
DirectSocketFactory.java | 22 import java.net.InetSocketAddress; 48 newSocket.connect(new InetSocketAddress(resolved[(roundrobin++) % resolved.length],port)); 63 newSocket.connect(new InetSocketAddress(host,port));
|
/libcore/luni/src/test/java/libcore/io/ |
OsTest.java | 23 import java.net.InetSocketAddress; 67 InetSocketAddress peerAddress = new InetSocketAddress(); 113 InetSocketAddress isa = (InetSocketAddress) Libcore.os.getsockname(fd); 122 InetSocketAddress isa = (InetSocketAddress) sa;
|
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/ |
UnixSocketTest.java | 25 import java.net.InetSocketAddress; 43 pingClient.connect(new InetSocketAddress( 93 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(),
|
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/udp/ |
UdpConnector.java | 69 InetSocketAddress localSocketAddress = new InetSocketAddress(0); 71 remoteAddress = new InetSocketAddress( remote, remotePort );
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
SSLSocketFactoryTest.java | 20 import java.net.InetSocketAddress; 68 InetSocketAddress sa = (InetSocketAddress) ss.getLocalSocketAddress();
|
/external/apache-http/src/org/apache/http/conn/ |
MultihomePlainSocketFactory.java | 36 import java.net.InetSocketAddress; 121 InetSocketAddress isa = 122 new InetSocketAddress(localAddress, localPort); 136 sock.connect(new InetSocketAddress(address, port), timeout);
|
/libcore/luni/src/test/java/libcore/javax/net/ |
ServerSocketFactoryTest.java | 23 import java.net.InetSocketAddress; 36 serverSocket.bind(new InetSocketAddress(0)); 76 assertBacklog(specifiedBacklog, new InetSocketAddress( 91 private void assertBacklog(int specifiedBacklog, InetSocketAddress serverAddress)
|