From b94a6a42c1024c00fab7b678cccaecfaa7604d56 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 21 Jan 2009 03:51:50 +0000 Subject: david - needed to actually import the shutdown function from the winsock dll.. --- src/win32_compatibility.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/win32_compatibility.cpp') 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 ); deffunc( inet_addr ); deffunc( select ); deffunc( socket ); +deffunc( shutdown ); deffunc( ioctlsocket ); deffunc( htons ); deffunc( htonl ); @@ -49,6 +50,7 @@ Bu::Winsock2::Winsock2() getfunc( inet_addr ); getfunc( select ); getfunc( socket ); + getfunc( shutdown ); getfunc( ioctlsocket ); getfunc( htons ); getfunc( htonl ); @@ -102,6 +104,9 @@ int Bu::Winsock2::select( int a, fd_set *b, fd_set *c, fd_set *d, SOCKET Bu::Winsock2::socket( int domain, int type, int protocol ) { return (*Bu::Winsock2::_fnptr_socket)( domain, type, protocol ); } +int Bu::Winsock2::shutdown( SOCKET s, int how ) { + return (*Bu::Winsock2::_fnptr_shutdown)( s, how ); +} int Bu::Winsock2::ioctlsocket( SOCKET s, long cmd, u_long *argp ) { return (*Bu::Winsock2::_fnptr_ioctlsocket)( s, cmd, argp ); } -- cgit v1.2.3