From ef2f33c700a9f559648089a5314638f9c73d3589 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 14 Jan 2009 21:09:21 +0000 Subject: Gettin' closer. --- src/win32_compatibility.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/win32_compatibility.h') diff --git a/src/win32_compatibility.h b/src/win32_compatibility.h index 72cb4f7..2fe740a 100644 --- a/src/win32_compatibility.h +++ b/src/win32_compatibility.h @@ -24,7 +24,8 @@ extern "C" } #endif -#include "fstring.h" +#include "bu/fstring.h" +#include "bu/singleton.h" #ifndef TEMP_FAILURE_RETRY #define TEMP_FAILURE_RETRY(expression) \ @@ -65,6 +66,18 @@ namespace DynamicWinsock2 int recv( SOCKET s, char *buf, int len, int flags ); int send( SOCKET s, const char *buf, int len, int flags ); int DYN_FD_ISSET(SOCKET s, fd_set *set); + + class Winsock2 : public Bu::Singleton + { + friend class Bu::Singleton; + private: + Winsock2(); + virtual ~Winsock2(); + + WSADATA wsaData; + + public: + } }; #endif /* WIN32 */ -- cgit v1.2.3