From 0f7874cbfc01da339cc6be221351ddffdb37805d Mon Sep 17 00:00:00 2001 From: Alexander Gottwald Date: Mon, 22 Nov 2004 13:23:25 +0000 Subject: 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 --- os/osdep.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'os/osdep.h') 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; -- cgit v1.2.3