summaryrefslogtreecommitdiff
path: root/src/serversocket.h
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2008-10-24 19:12:49 +0000
committerDavid <david@xagasoft.com>2008-10-24 19:12:49 +0000
commit566dd25530779388859f8a21191e60c62a21cd5f (patch)
treec46f7f93d7d1eefbec8df6c35d3ee95ac5156459 /src/serversocket.h
parente7e521b0ddfdbae6407b77020824da614610a04c (diff)
downloadlibbu++-566dd25530779388859f8a21191e60c62a21cd5f.tar.gz
libbu++-566dd25530779388859f8a21191e60c62a21cd5f.tar.bz2
libbu++-566dd25530779388859f8a21191e60c62a21cd5f.tar.xz
libbu++-566dd25530779388859f8a21191e60c62a21cd5f.zip
david - ok, fixed the compiler warnings in socket class. got serversocket compliling without warnings. added win32_compatibility.h along the same lines as osx_copatibility.h
Diffstat (limited to 'src/serversocket.h')
-rw-r--r--src/serversocket.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/serversocket.h b/src/serversocket.h
index 1742786..168c5e1 100644
--- a/src/serversocket.h
+++ b/src/serversocket.h
@@ -11,7 +11,12 @@
11#include <stdint.h> 11#include <stdint.h>
12#include "bu/fstring.h" 12#include "bu/fstring.h"
13#include "bu/exceptionbase.h" 13#include "bu/exceptionbase.h"
14#include <sys/select.h> 14
15#ifdef WIN32
16 #include <Winsock2.h>
17#else
18 #include <sys/select.h>
19#endif
15 20
16namespace Bu 21namespace Bu
17{ 22{
@@ -45,7 +50,11 @@ namespace Bu
45 void startServer( struct sockaddr_in &name, int nPoolSize ); 50 void startServer( struct sockaddr_in &name, int nPoolSize );
46 51
47 fd_set fdActive; 52 fd_set fdActive;
53#ifdef WIN32
54 unsigned int nServer;
55#else
48 int nServer; 56 int nServer;
57#endif
49 int nPort; 58 int nPort;
50 }; 59 };
51} 60}