diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-11-22 13:23:25 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2004-11-22 13:23:25 +0000 |
commit | 0f7874cbfc01da339cc6be221351ddffdb37805d (patch) | |
tree | c3586ae46745ae4ec477113cb3b604c498459605 /os/osdep.h | |
parent | e6bc551e3451efe4fcbb55475d6d0ff53fcc9807 (diff) |
Use a simple hashtable as ConnectionTranslation instead of a plain array on
Windows because socket fds are not sequential and do not start at 0
Diffstat (limited to 'os/osdep.h')
-rw-r--r-- | os/osdep.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/os/osdep.h b/os/osdep.h index 4ab988057..38c60c661 100644 --- a/os/osdep.h +++ b/os/osdep.h @@ -245,8 +245,14 @@ extern fd_set ClientsWithInput; extern fd_set ClientsWriteBlocked; extern fd_set OutputPending; extern fd_set IgnoredClientsWithInput; - + +#ifndef WIN32 extern int *ConnectionTranslation; +#else +extern int GetConnectionTranslation(int conn); +extern void SetConnectionTranslation(int conn, int client); +extern void ClearConnectionTranslation(); +#endif extern Bool NewOutputPending; extern Bool AnyClientsWriteBlocked; |