From 4f17362aeb80e5339c58a5d3b0fbaeb88d9e701c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 13 Feb 2012 21:47:03 +0000 Subject: Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it. git-svn-id: http://mc-server.googlecode.com/svn/trunk@251 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- WebServer/Socket.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'WebServer/Socket.h') diff --git a/WebServer/Socket.h b/WebServer/Socket.h index 339dae188..e38df69ea 100644 --- a/WebServer/Socket.h +++ b/WebServer/Socket.h @@ -32,14 +32,19 @@ #ifndef SOCKET_H #define SOCKET_H -#include "../source/MCSocket.h" -// #ifdef _WIN32 -// #include -// #endif -#include + +#ifndef _WIN32 + typedef int SOCKET; + #define SOCKET_ERROR (-1) + #define closesocket close +#endif // !_WIN32 + + + + enum TypeSocket {BlockingSocket, NonBlockingSocket}; -- cgit v1.2.3