aboutsummaryrefslogtreecommitdiff
path: root/src/win32_compatibility.cpp
diff options
context:
space:
mode:
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}