Searched refs:serverSocket (Results 1 – 4 of 4) sorted by relevance
35 int serverSocket = socket(AF_LOCAL, SOCK_STREAM, 0); in acceptClientConnection() local36 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()
53 private ServerSocket serverSocket; field in ProxyServer193 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()
656 SSLServerSocket serverSocket in run() local661 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()
521 ServerSocket serverSocket = new ServerSocket(8888);522 Socket client = serverSocket.accept();538 serverSocket.close();