4 #ifndef RUDIMENTS_WINSOCK_H
5 #define RUDIMENTS_WINSOCK_H
7 #include <rudiments/private/config.h>
9 #ifdef RUDIMENTS_HAVE_WINSOCK2_H
10 #include <rudiments/mutex.h>
15 #ifdef RUDIMENTS_HAVE_WINDOWS_H
19 #ifdef RUDIMENTS_NAMESPACE
25 static bool initWinsock();
26 static void shutDownWinsock();
28 #ifdef RUDIMENTS_HAVE_WINSOCK2_H
29 static bool _initialized;
30 static mutex _winsockmutex;
31 static WSADATA _wsadata;
35 #ifdef RUDIMENTS_NAMESPACE