aboutsummaryrefslogtreecommitdiff
path: root/src/win32_compatibility.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-01-14 21:09:21 +0000
committerMike Buland <eichlan@xagasoft.com>2009-01-14 21:09:21 +0000
commitef2f33c700a9f559648089a5314638f9c73d3589 (patch)
tree1734cf5b726b482a6d78c21e115bf55b68dcfa90 /src/win32_compatibility.h
parentb49973db8489f02e10e3475b6a8a199d919a6efa (diff)
downloadlibbu++-ef2f33c700a9f559648089a5314638f9c73d3589.tar.gz
libbu++-ef2f33c700a9f559648089a5314638f9c73d3589.tar.bz2
libbu++-ef2f33c700a9f559648089a5314638f9c73d3589.tar.xz
libbu++-ef2f33c700a9f559648089a5314638f9c73d3589.zip
Gettin' closer.
Diffstat (limited to '')
-rw-r--r--src/win32_compatibility.h15
1 files changed, 14 insertions, 1 deletions
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"
24} 24}
25#endif 25#endif
26 26
27#include "fstring.h" 27#include "bu/fstring.h"
28#include "bu/singleton.h"
28 29
29#ifndef TEMP_FAILURE_RETRY 30#ifndef TEMP_FAILURE_RETRY
30#define TEMP_FAILURE_RETRY(expression) \ 31#define TEMP_FAILURE_RETRY(expression) \
@@ -65,6 +66,18 @@ namespace DynamicWinsock2
65 int recv( SOCKET s, char *buf, int len, int flags ); 66 int recv( SOCKET s, char *buf, int len, int flags );
66 int send( SOCKET s, const char *buf, int len, int flags ); 67 int send( SOCKET s, const char *buf, int len, int flags );
67 int DYN_FD_ISSET(SOCKET s, fd_set *set); 68 int DYN_FD_ISSET(SOCKET s, fd_set *set);
69
70 class Winsock2 : public Bu::Singleton<Winsock2>
71 {
72 friend class Bu::Singleton<Winsock2>;
73 private:
74 Winsock2();
75 virtual ~Winsock2();
76
77 WSADATA wsaData;
78
79 public:
80 }
68}; 81};
69 82
70#endif /* WIN32 */ 83#endif /* WIN32 */