poll(2) on the server socket; pollfds array

This commit is contained in:
root 2025-05-07 10:29:21 +00:00
parent 5c129207ae
commit 08f4db4d2b
3 changed files with 77 additions and 7 deletions

View file

@ -1,6 +1,7 @@
#include <stdio.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <poll.h>
// printf("x %d\n", x);
void main() {
@ -11,4 +12,6 @@ void main() {
printf("O_NONBLOCK %d\n", O_NONBLOCK);
printf("sizeof(int) %d\n", sizeof(int));
printf("sizeof(short) %d\n", sizeof(short));
printf("POLLIN %d\n", POLLIN);
printf("POLLOUT %d\n", POLLOUT);
}