Searched refs:cli_fd (Results 1 – 1 of 1) sorted by relevance
182 int cli_fd; in handle_client() local188 cli_fd = accept(sock_fd, (struct sockaddr *)&from, &fromlen); in handle_client()189 if (cli_fd == -1) { in handle_client()193 if (recv(cli_fd, &cmd, sizeof(cmd), 0) != sizeof(cmd)) { in handle_client()194 (void) close(cli_fd); in handle_client()199 close(cli_fd); /* terminate client */ in handle_client()216 if (send(cli_fd, &reply, sizeof(reply), 0) != sizeof(reply)) { in handle_client()219 close(cli_fd); in handle_client()