aboutsummaryrefslogtreecommitdiff
path: root/src/win32_compatibility.cpp
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2009-01-21 03:51:50 +0000
committerDavid <david@xagasoft.com>2009-01-21 03:51:50 +0000
commitb94a6a42c1024c00fab7b678cccaecfaa7604d56 (patch)
treee6beea01ee74c35bd7dcc54313ea727e02b87b48 /src/win32_compatibility.cpp
parente27a084118b8810b6bd442c560df46ce161a9a87 (diff)
downloadlibbu++-b94a6a42c1024c00fab7b678cccaecfaa7604d56.tar.gz
libbu++-b94a6a42c1024c00fab7b678cccaecfaa7604d56.tar.bz2
libbu++-b94a6a42c1024c00fab7b678cccaecfaa7604d56.tar.xz
libbu++-b94a6a42c1024c00fab7b678cccaecfaa7604d56.zip
david - needed to actually import the shutdown function from the winsock dll..
Diffstat (limited to 'src/win32_compatibility.cpp')
-rw-r--r--src/win32_compatibility.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/win32_compatibility.cpp b/src/win32_compatibility.cpp
index b85e869..c052e0b 100644
--- a/src/win32_compatibility.cpp
+++ b/src/win32_compatibility.cpp
@@ -14,6 +14,7 @@ deffunc( inet_ntoa );
14deffunc( inet_addr ); 14deffunc( inet_addr );
15deffunc( select ); 15deffunc( select );
16deffunc( socket ); 16deffunc( socket );
17deffunc( shutdown );
17deffunc( ioctlsocket ); 18deffunc( ioctlsocket );
18deffunc( htons ); 19deffunc( htons );
19deffunc( htonl ); 20deffunc( htonl );
@@ -49,6 +50,7 @@ Bu::Winsock2::Winsock2()
49 getfunc( inet_addr ); 50 getfunc( inet_addr );
50 getfunc( select ); 51 getfunc( select );
51 getfunc( socket ); 52 getfunc( socket );
53 getfunc( shutdown );
52 getfunc( ioctlsocket ); 54 getfunc( ioctlsocket );
53 getfunc( htons ); 55 getfunc( htons );
54 getfunc( htonl ); 56 getfunc( htonl );
@@ -102,6 +104,9 @@ int Bu::Winsock2::select( int a, fd_set *b, fd_set *c, fd_set *d,
102SOCKET Bu::Winsock2::socket( int domain, int type, int protocol ) { 104SOCKET Bu::Winsock2::socket( int domain, int type, int protocol ) {
103 return (*Bu::Winsock2::_fnptr_socket)( domain, type, protocol ); 105 return (*Bu::Winsock2::_fnptr_socket)( domain, type, protocol );
104} 106}
107int Bu::Winsock2::shutdown( SOCKET s, int how ) {
108 return (*Bu::Winsock2::_fnptr_shutdown)( s, how );
109}
105int Bu::Winsock2::ioctlsocket( SOCKET s, long cmd, u_long *argp ) { 110int Bu::Winsock2::ioctlsocket( SOCKET s, long cmd, u_long *argp ) {
106 return (*Bu::Winsock2::_fnptr_ioctlsocket)( s, cmd, argp ); 111 return (*Bu::Winsock2::_fnptr_ioctlsocket)( s, cmd, argp );
107} 112}