poll(2) on the server socket; pollfds array
This commit is contained in:
parent
5c129207ae
commit
08f4db4d2b
3 changed files with 77 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue