This commit is contained in:
Denis 2023-12-13 01:34:50 +01:00
parent 12fd7c768b
commit 6dcc10093f
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -80,6 +80,13 @@ int main(int argc, char ** argv) {
break;
}
rc = listen(sd, MAX_CONNECTED_CLIENTS - 1);
if (rc< 0)
{
perror("listen() failed");
break;
}
while (true) {
const int client_fd = accept(sd, NULL, NULL);
if (client_fd < 0) {