Searched refs:new_socket (Results 1 – 1 of 1) sorted by relevance
76 int new_socket; in server_download() local77 new_socket = accept(sock_server.fd, (struct sockaddr *)&client, in server_download()79 if (new_socket < 0) { in server_download()86 if (recv(new_socket, byte_buffer, strlen(byte_buffer), 0) < 0) { in server_download()87 close(new_socket); in server_download()92 if (send(new_socket, byte_buffer, strlen(byte_buffer), 0) < 0) { in server_download()93 close(new_socket); in server_download()97 close(new_socket); in server_download()