diff options
author | David <david@xagasoft.com> | 2009-01-21 03:51:50 +0000 |
---|---|---|
committer | David <david@xagasoft.com> | 2009-01-21 03:51:50 +0000 |
commit | b94a6a42c1024c00fab7b678cccaecfaa7604d56 (patch) | |
tree | e6beea01ee74c35bd7dcc54313ea727e02b87b48 /src/win32_compatibility.cpp | |
parent | e27a084118b8810b6bd442c560df46ce161a9a87 (diff) | |
download | libbu++-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 '')
-rw-r--r-- | src/win32_compatibility.cpp | 5 |
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 ); | |||
14 | deffunc( inet_addr ); | 14 | deffunc( inet_addr ); |
15 | deffunc( select ); | 15 | deffunc( select ); |
16 | deffunc( socket ); | 16 | deffunc( socket ); |
17 | deffunc( shutdown ); | ||
17 | deffunc( ioctlsocket ); | 18 | deffunc( ioctlsocket ); |
18 | deffunc( htons ); | 19 | deffunc( htons ); |
19 | deffunc( htonl ); | 20 | deffunc( 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, | |||
102 | SOCKET Bu::Winsock2::socket( int domain, int type, int protocol ) { | 104 | SOCKET 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 | } |
107 | int Bu::Winsock2::shutdown( SOCKET s, int how ) { | ||
108 | return (*Bu::Winsock2::_fnptr_shutdown)( s, how ); | ||
109 | } | ||
105 | int Bu::Winsock2::ioctlsocket( SOCKET s, long cmd, u_long *argp ) { | 110 | int 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 | } |