This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 49834b7afd0fe31660108271ef7657a34caa6a6d Mon Sep 17 00:00:00 2001 | |
From: "Alfred E. Heggestad" <[email protected]> | |
Date: Sat, 7 Oct 2017 15:49:44 +0200 | |
Subject: [PATCH] main: keep fd handlers in list | |
Experimental code in order to try to solve | |
sockets for Windows. On windows the "int fd" is actually | |
of type "SOCKET fd" and the range goes from 0 to very large. | |
ref #61 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 49834b7afd0fe31660108271ef7657a34caa6a6d Mon Sep 17 00:00:00 2001 | |
From: "Alfred E. Heggestad" <[email protected]> | |
Date: Sat, 7 Oct 2017 15:49:44 +0200 | |
Subject: [PATCH] main: keep fd handlers in list | |
Experimental code in order to try to solve | |
sockets for Windows. On windows the "int fd" is actually | |
of type "SOCKET fd" and the range goes from 0 to very large. | |
ref #61 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <signal.h> | |
#include <fcntl.h> | |
#include <errno.h> | |
#include <poll.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <sys/time.h> |