Home
last modified time | relevance | path

Searched refs:serverSocket (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/opengl/libs/GLES_trace/src/
Dgltrace_transport.cpp35 int serverSocket = socket(AF_LOCAL, SOCK_STREAM, 0); in acceptClientConnection() local
36 if (serverSocket < 0) { in acceptClientConnection()
38 serverSocket); in acceptClientConnection()
51 if (bind(serverSocket, (struct sockaddr *) &server, sockaddr_len) < 0) { in acceptClientConnection()
52 close(serverSocket); in acceptClientConnection()
57 if (listen(serverSocket, 1) < 0) { in acceptClientConnection()
58 close(serverSocket); in acceptClientConnection()
65 int clientSocket = accept(serverSocket, (struct sockaddr *)&client, &sockaddr_len); in acceptClientConnection()
67 close(serverSocket); in acceptClientConnection()
89 close(serverSocket); in acceptClientConnection()
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
DProxyServer.java53 private ServerSocket serverSocket; field in ProxyServer
193 serverSocket = new ServerSocket(0); in run()
195 if (serverSocket != null) { in run()
196 setPort(serverSocket.getLocalPort()); in run()
200 Socket socket = serverSocket.accept(); in run()
252 if (serverSocket != null) { in stopServer()
254 serverSocket.close(); in stopServer()
255 serverSocket = null; in stopServer()
/frameworks/base/tests/CoreTests/android/core/
DSSLSocketTest.java656 SSLServerSocket serverSocket in run() local
661 serverSocket.setWantClientAuth(true); in run()
663 serverSocket.setNeedClientAuth(true); in run()
665 serverSocket.setWantClientAuth(false); in run()
668 serverSocket.bind(new InetSocketAddress(port)); in run()
670 SSLSocket clientSocket = (SSLSocket) serverSocket.accept(); in run()
684 serverSocket.close(); in run()
/frameworks/base/docs/html/guide/topics/connectivity/
Dwifip2p.jd521 ServerSocket serverSocket = new ServerSocket(8888);
522 Socket client = serverSocket.accept();
538 serverSocket.close();