/libcore/luni/src/main/java/javax/net/ |
H A D | DefaultSocketFactory.java | 22 import java.net.Socket; 34 public Socket createSocket() throws IOException { 35 return new Socket(); 39 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { 40 return new Socket(host, port); 44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 46 return new Socket(host, port, localHost, localPort); 50 public Socket createSocket(InetAddress host, int port) throws IOException { 51 return new Socket(host, port); 55 public Socket createSocke [all...] |
H A D | SocketFactory.java | 22 import java.net.Socket; 62 public Socket createSocket() throws IOException { 84 public abstract Socket createSocket(String host, int port) throws IOException, 110 public abstract Socket createSocket(String host, int port, InetAddress localHost, int localPort) 127 public abstract Socket createSocket(InetAddress host, int port) throws IOException; 150 public abstract Socket createSocket(InetAddress address, int port, InetAddress localAddress,
|
/libcore/luni/src/main/java/java/net/ |
H A D | SocketUtils.java | 24 * Helps us reuse more of Socket's implementation in SocketChannelImpl.SocketAdapter. 25 * It's not the case that we should set isCreated in the Socket(SocketImpl) constructor; 29 public static void setCreated(Socket s) {
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | ServerSocketTest.java | 21 import java.net.Socket; 30 final Socket[] result = new Socket[1]; 42 new Socket(ss.getInetAddress(), ss.getLocalPort());
|
H A D | OldSocketTest.java | 31 import java.net.Socket; 46 Socket s; 61 s = new Socket(); 73 // Test for method java.net.Socket(java.lang.String, int) 75 s = new Socket(InetAddress.getLocalHost().getHostName(), sport); 80 Socket s = null; 83 s = new Socket("0.0.0.0", ss.getLocalPort()); 98 new Socket("unknown.host", 0); 103 Socket socket = null; 105 socket = new Socket(InetAddres [all...] |
H A D | OldUnixSocketTest.java | 27 import java.net.Socket; 36 Socket pingClient = new Socket(); 42 Socket worker = pingServer.accept(); 87 Socket theSocket = new Socket(); 106 Socket socket = new Socket("127.0.0.1", port, false);
|
H A D | SocketTest.java | 26 import java.net.Socket; 40 Socket s = new Socket(); 52 Socket s = new Socket(); 73 new Socket("localhost", 80); 175 class MySocket extends Socket { 182 Socket s = new MySocket(impl); 189 // subclasses Socket, and whether or not to call SocketImpl.create is the main behavioral 205 Socket [all...] |
H A D | OldSocketImplFactoryTest.java | 8 import java.net.Socket; 30 Socket.setSocketImplFactory(factory); 33 new Socket(); 41 Socket.setSocketImplFactory(factory); 48 Socket.setSocketImplFactory(null); 65 Field [] fields = Socket.class.getDeclaredFields();
|
H A D | ConcurrentCloseTest.java | 24 import java.net.Socket; 36 * Test that Socket.close called on another thread interrupts a thread that's blocked doing 45 Socket s = ss.accept(); 48 assertEquals("Socket closed", expected.getMessage()); 54 Socket s = new Socket(); 61 assertEquals("Socket closed", expected.getMessage()); 69 Socket s = new Socket(); 76 assertEquals("Socket close [all...] |
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | SSLSocketFactoryImpl.java | 6 import java.net.Socket; 17 public Socket createSocket(Socket socket, String s, int i, boolean flag) 30 socket = new Socket(s, i); 32 socket = new Socket(s, i); 50 public Socket createSocket(String arg0, int arg1) throws IOException, UnknownHostException { 59 public Socket createSocket(InetAddress arg0, int arg1) throws IOException { 68 public Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException, UnknownHostException { 77 public Socket createSocket(InetAddress arg0, int arg1, InetAddress arg2, int arg3) throws IOException {
|
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | DefaultSSLSocketFactory.java | 22 import java.net.Socket; 50 public Socket createSocket(Socket s, String host, int port, boolean autoClose) 56 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { 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,
|
H A D | X509KeyManager.java | 20 import java.net.Socket; 46 Socket socket); 64 Socket socket);
|
H A D | SSLSocketFactory.java | 21 import java.net.Socket; 122 public abstract Socket createSocket(Socket s, String host, int port, boolean autoClose)
|
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
H A D | SSLSocketFactoryTest.java | 20 import java.net.Socket; 62 * javax.net.ssl.SSLSocketFactory#createSocket(Socket s, String host, int port, boolean autoClose) 71 Socket st = new Socket("localhost", sport); 72 Socket s = sf.createSocket(st, "localhost", sport, false); 78 Socket st = new Socket("localhost", sport); 79 Socket s = sf.createSocket(st, "localhost", sport, true); 95 Socket s = sf.createSocket(new Socket(), "localhos [all...] |
H A D | X509ExtendedKeyManagerTest.java | 20 import java.net.Socket; 41 * @see javax.net.ssl.X509KeyManager#chooseClientAlias(java.lang.String[], java.security.Principal[], java.net.Socket) 43 public String chooseClientAlias(String[] arg0, Principal[] arg1, Socket arg2) { 49 * @see javax.net.ssl.X509KeyManager#chooseServerAlias(java.lang.String, java.security.Principal[], java.net.Socket) 51 public String chooseServerAlias(String arg0, Principal[] arg1, Socket arg2) { 130 * java.security.Principal[], java.net.Socket) 133 Socket socket) { 139 * java.security.Principal[], java.net.Socket) 142 Socket socket) {
|
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | OpenSSLSocketFactoryImpl.java | 21 import java.net.Socket; 56 public Socket createSocket() throws IOException { 63 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { 67 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 76 public Socket createSocket(InetAddress host, int port) throws IOException { 80 public Socket createSocket(InetAddress address, 92 public Socket createSocket(Socket s, String host, int port, boolean autoClose)
|
H A D | SSLSocketFactoryImpl.java | 22 import java.net.Socket; 83 * @see javax.net.ssl.SSLSocketFactory#createSocket(Socket,String,int,boolean) 86 public Socket createSocket(Socket s, String host, int port, 101 public Socket createSocket() throws IOException { 112 public Socket createSocket(String host, int port) 125 public Socket createSocket(String host, int port, 139 public Socket createSocket(InetAddress host, int port) 152 public Socket createSocket(InetAddress address, int port,
|
/libcore/support/src/test/java/tests/net/ |
H A D | StuckServer.java | 23 import java.net.Socket; 34 private ArrayList<Socket> clients = new ArrayList<Socket>(); 52 Socket client = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()); 81 for (Socket client : clients) {
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | SSLSocketFactoryTest.java | 22 import java.net.Socket; 55 Socket s = sf.createSocket(null, null, -1, false); 62 Socket ssl = sf.createSocket(new Socket(), null, -1, false); 71 Socket s = new Socket(host, port); 73 Socket ssl = sf.createSocket(s, null, -1, false);
|
/libcore/luni/src/test/java/libcore/javax/net/ |
H A D | ServerSocketFactoryTest.java | 25 import java.net.Socket; 67 Socket s = serverSocket.accept(); 75 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort()); 93 List<Socket> backlog = new ArrayList<Socket>(); 98 Socket socket = new Socket(); 109 for (Socket socket : backlog) {
|
/libcore/dalvik/src/main/java/dalvik/system/ |
H A D | SocketTagger.java | 20 import java.net.Socket; 52 public final void tag(Socket socket) throws SocketException { 58 public final void untag(Socket socket) throws SocketException {
|
/libcore/luni/src/main/java/libcore/net/url/ |
H A D | FtpURLInputStream.java | 22 import java.net.Socket; 33 private Socket controlSocket; 35 public FtpURLInputStream(InputStream is, Socket controlSocket) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
H A D | MockSocketChannel.java | 21 import java.net.Socket; 33 public Socket socket() {
|
/libcore/luni/src/main/java/java/util/logging/ |
H A D | SocketHandler.java | 22 import java.net.Socket; 63 private Socket socket; 120 this.socket = new Socket(host, p);
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | ForwardingX509ExtendedKeyManager.java | 19 import java.net.Socket; 38 public String chooseClientAlias(String[] keyType, Principal[] issuers, Socket socket) { 43 public String chooseServerAlias(String keyType, Principal[] issuers, Socket socket) {
|