fixed server loop

This commit is contained in:
Václav Šmejkal 2023-02-09 19:32:54 +01:00
parent 6160ddbfad
commit 649997088b
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -41,7 +41,7 @@ int main(void)
if (listen(listen_socket, 1) < 0) why2_die("Binding failed."); if (listen(listen_socket, 1) < 0) why2_die("Binding failed.");
//LOOP ACCEPT //LOOP ACCEPT
while (getchar() != '\n') //END WHEN ENTER IS PRESSED for (;;)
{ {
accepted = accept(listen_socket, (SA *) NULL, NULL); //ACCEPT NEW SOCKET //TODO: CLOSE accepted = accept(listen_socket, (SA *) NULL, NULL); //ACCEPT NEW SOCKET //TODO: CLOSE