/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
TestServerSocketInit.java | 21 import java.net.ServerSocket; 26 ServerSocket serverSocket = new ServerSocket(); 27 serverSocket.setReuseAddress(true); 28 serverSocket.close();
|
ServerSocketTest.java | 28 import java.net.ServerSocket; 48 ServerSocket s; 87 * @tests java.net.ServerSocket#ServerSocket() 90 // Test for method java.net.ServerSocket(int) 95 * @tests java.net.ServerSocket#ServerSocket(int) 98 // Test for method java.net.ServerSocket(int) 103 * @tests java.net.ServerSocket#ServerSocket(int [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ |
ServerSocketFactoryTest.java | 24 import java.net.ServerSocket; 35 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(); 36 serverSocket.bind(new InetSocketAddress(0)); 37 testSocket(serverSocket, 50); 41 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0); 42 testSocket(serverSocket, 50); 46 ServerSocket serverSocket = ServerSocketFactory.getDefault().createServerSocket(0, 1) [all...] |
/libcore/support/src/test/java/tests/net/ |
StuckServer.java | 22 import java.net.ServerSocket; 27 * A test ServerSocket that you can't connect to --- connects will time out. 32 private ServerSocket serverSocket; 46 this.serverSocket = new ServerSocket(0, 1); 47 this.address = (InetSocketAddress) serverSocket.getLocalSocketAddress(); 49 System.err.println("StuckServer: " + serverSocket); 52 Socket client = new Socket(serverSocket.getInetAddress(), serverSocket.getLocalPort()) [all...] |
/frameworks/native/opengl/libs/GLES_trace/src/ |
gltrace_transport.cpp | 35 int serverSocket = socket(AF_LOCAL, SOCK_STREAM, 0); 36 if (serverSocket < 0) { 38 serverSocket); 51 if (bind(serverSocket, (struct sockaddr *) &server, sockaddr_len) < 0) { 52 close(serverSocket); 57 if (listen(serverSocket, 1) < 0) { 58 close(serverSocket); 65 int clientSocket = accept(serverSocket, (struct sockaddr *)&client, &sockaddr_len); 67 close(serverSocket); 89 close(serverSocket); [all...] |
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
SnepBasicTests.java | 38 MockLlcpSocket serverSocket = new MockLlcpSocket(); 39 MockLlcpSocket.bind(clientSocket, serverSocket); 42 final SnepMessenger server = new SnepMessenger(false, serverSocket, MIU); 69 MockLlcpSocket serverSocket = new MockLlcpSocket(); 70 MockLlcpSocket.bind(clientSocket, serverSocket); 73 final SnepMessenger server = new SnepMessenger(false, serverSocket, MIU); 100 MockLlcpSocket serverSocket = new MockLlcpSocket(); 101 MockLlcpSocket.bind(clientSocket, serverSocket); 104 final SnepMessenger server = new SnepMessenger(false, serverSocket, MIU); 131 MockLlcpSocket serverSocket = new MockLlcpSocket() [all...] |
/cts/tests/tests/net/src/android/net/cts/ |
LocalSocketTest.java | 42 LocalSocket serverSocket = localServerSocket.accept(); 50 InputStream serverInStream = serverSocket.getInputStream(); 54 OutputStream serverOutStream = serverSocket.getOutputStream(); 64 FileDescriptor[] out = serverSocket.getAncillaryFileDescriptors(); 83 serverSocket.shutdownInput(); 87 serverSocket.shutdownOutput(); 105 serverSocket.close();
|
LocalServerSocketTest.java | 40 LocalSocket serverSocket = localServerSocket.accept(); 45 InputStream serverInStream = serverSocket.getInputStream(); 49 OutputStream serverOutStream = serverSocket.getOutputStream();
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldSocketTest.java | 30 import java.net.ServerSocket; 44 ServerSocket ss; 79 ServerSocket ss = null; 82 ss = new ServerSocket(0); 204 ServerSocket server = new ServerSocket(0); 592 ServerSocket serverSocket = new ServerSocket(0, 5, addr); 593 Socket theSocket = new Socket(addr, serverSocket.getLocalPort()) [all...] |
SocketTest.java | 25 import java.net.ServerSocket; 93 ServerSocket ss = ssc.socket(); 261 final ServerSocket serverSocket = new ServerSocket(0); 266 Socket socket = serverSocket.accept(); 275 Socket socket = new Socket("localhost", serverSocket.getLocalPort()); 286 serverSocket.close(); 291 private ServerSocket serverSocket; [all...] |
/external/okhttp/src/test/java/com/squareup/okhttp/internal/spdy/ |
MockSpdyPeer.java | 25 import java.net.ServerSocket; 46 private ServerSocket serverSocket; 77 if (serverSocket != null) throw new IllegalStateException(); 78 serverSocket = new ServerSocket(0); 79 serverSocket.setReuseAddress(true); 80 this.port = serverSocket.getLocalPort(); 94 socket = serverSocket.accept(); 142 ServerSocket serverSocket = this.serverSocket [all...] |
SpdyServer.java | 28 import java.net.ServerSocket; 51 ServerSocket serverSocket = new ServerSocket(8888); 52 serverSocket.setReuseAddress(true); 55 Socket socket = serverSocket.accept();
|
/external/smack/src/org/jivesoftware/smackx/bytestreams/socks5/ |
Socks5Proxy.java | 20 import java.net.ServerSocket;
81 private ServerSocket serverSocket;
134 this.serverSocket = new ServerSocket(port + i);
143 this.serverSocket = new ServerSocket(SmackConfiguration.getLocalSocks5ProxyPort());
146 if (this.serverSocket != null) {
167 this.serverSocket.close();
183 this.serverSocket = null; [all...] |
/packages/apps/Nfc/src/com/android/nfc/echoserver/ |
EchoServer.java | 172 LlcpServerSocket serverSocket; 207 serverSocket = mService.createLlcpServerSocket(DEFAULT_CO_SAP, 212 if (serverSocket == null) { 222 clientSocket = serverSocket.accept(); 244 serverSocket.close(); 248 serverSocket = null; 265 if (serverSocket != null) { 267 serverSocket.close(); 271 serverSocket = null;
|
/external/okhttp/src/test/java/com/squareup/okhttp/internal/mockspdyserver/ |
MockSpdyServer.java | 32 import java.net.ServerSocket; 57 private ServerSocket serverSocket; 110 serverSocket = new ServerSocket(0); 111 serverSocket.setReuseAddress(true); 112 port = serverSocket.getLocalPort(); 126 serverSocket.close(); 151 socket = serverSocket.accept(); 161 if (serverSocket != null) [all...] |
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
ProxyServer.java | 32 import java.net.ServerSocket; 55 private ServerSocket serverSocket; 195 serverSocket = new ServerSocket(0); 197 if (serverSocket != null) { 198 setPort(serverSocket.getLocalPort()); 202 Socket socket = serverSocket.accept(); 254 if (serverSocket != null) { 256 serverSocket.close() [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
HttpURLConnectionTest.java | 29 import java.net.ServerSocket; 49 ServerSocket serverSocket; 55 serverSocket = new ServerSocket(0); 56 serverSocket.setSoTimeout(1000); 60 return serverSocket.getLocalPort(); 71 serverSocket.accept().close(); 75 serverSocket.close(); 93 Socket socket = serverSocket.accept() [all...] |
/packages/apps/Nfc/src/com/android/nfc/handover/ |
HandoverServer.java | 98 LlcpServerSocket serverSocket; 100 serverSocket = mServerSocket; 103 if (serverSocket == null) { 108 LlcpSocket communicationSocket = serverSocket.accept();
|
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
NdefPushServer.java | 147 LlcpServerSocket serverSocket; 149 serverSocket = mServerSocket; 151 if (serverSocket == null) return; 154 LlcpSocket communicationSocket = serverSocket.accept();
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestSSLContext.java | 90 public final SSLServerSocket serverSocket; 104 SSLServerSocket serverSocket, 117 this.serverSocket = serverSocket; 124 serverSocket.close(); 176 SSLServerSocket serverSocket = (SSLServerSocket) 179 int port = serverSocket.getLocalPort(); 188 serverSocket, host, port);
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_epoll.py | 44 self.serverSocket = socket.socket() 45 self.serverSocket.bind(('127.0.0.1', 0)) 46 self.serverSocket.listen(1) 47 self.connections = [self.serverSocket] 58 client.connect(('127.0.0.1', self.serverSocket.getsockname()[1])) 63 server, addr = self.serverSocket.accept()
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_epoll.py | 44 self.serverSocket = socket.socket() 45 self.serverSocket.bind(('127.0.0.1', 0)) 46 self.serverSocket.listen(1) 47 self.connections = [self.serverSocket] 58 client.connect(('127.0.0.1', self.serverSocket.getsockname()[1])) 63 server, addr = self.serverSocket.accept()
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
HttpsURLConnectionTest.java | 32 import java.net.ServerSocket; 108 ServerSocket ss = new ServerSocket(0); 133 ServerSocket ss = ctx.getServerSocketFactory() 173 ServerSocket ss = ctx.getServerSocketFactory() 211 ServerSocket ss = ctx.getServerSocketFactory() 498 ServerSocket ss = new ServerSocket(0); 535 ServerSocket ss = new ServerSocket(0) [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
SSLSessionTest.java | 55 assertEquals(serverSocket.getLocalPort(), s.getPeerPort()); 449 SSLServerSocket serverSocket; 498 serverSocket = (SSLServerSocket)sslContext.getServerSocketFactory().createServerSocket(); 501 serverSocket.setWantClientAuth(true); 503 serverSocket.setNeedClientAuth(true); 505 serverSocket.setWantClientAuth(false); 508 serverSocket.bind(null); 513 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); 528 serverSocket.close(); 583 socket.connect(serverSocket.getLocalSocketAddress()) [all...] |
HandshakeCompletedEventTest.java | 203 private SSLServerSocket serverSocket; 412 serverSocket = (SSLServerSocket) sslContext.getServerSocketFactory().createServerSocket(); 415 serverSocket.setWantClientAuth(true); 417 serverSocket.setNeedClientAuth(true); 419 serverSocket.setWantClientAuth(false); 422 serverSocket.bind(new InetSocketAddress(0)); 427 SSLSocket clientSocket = (SSLSocket)serverSocket.accept(); 448 serverSocket.close(); 497 socket.connect(serverSocket.getLocalSocketAddress());
|