private void StartServerInternal() { while (true) { // Wait for a request from a client. Socket clientSocket = socket.Accept(); // Process the client request. var request = new ProcessClientRequest(this, clientSocket); request.Process(); } }