summaryrefslogtreecommitdiffstats
path: root/WebServer/Socket.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--WebServer/Socket.h15
1 files changed, 10 insertions, 5 deletions
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 <winsock2.h>
-// #endif
-#include <string>
+
+#ifndef _WIN32
+ typedef int SOCKET;
+ #define SOCKET_ERROR (-1)
+ #define closesocket close
+#endif // !_WIN32
+
+
+
+
enum TypeSocket {BlockingSocket, NonBlockingSocket};