X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=listati%2Fpoll_echod.c;fp=listati%2Fpoll_echod.c;h=91b53cefee58f03f0a9ae6d4944800d24d5b01fc;hp=0000000000000000000000000000000000000000;hb=630c685145f488d9a3b7b81a25619982dbbb25ea;hpb=d0e8bddbdc1549d29aa3b45a06d60482c2179377 diff --git a/listati/poll_echod.c b/listati/poll_echod.c new file mode 100644 index 0000000..91b53ce --- /dev/null +++ b/listati/poll_echod.c @@ -0,0 +1,60 @@ + /* initialize all needed variables */ + poll_set = (struct pollfd *) malloc(n * sizeof(struct pollfd)); + max_fd = list_fd; /* maximum now is listening socket */ + for (i=0; i