- GET_WINSOCK_FUNCTION(WSAAsyncSelect);
- GET_WINSOCK_FUNCTION(WSAEventSelect);
- GET_WINSOCK_FUNCTION(select);
- GET_WINSOCK_FUNCTION(WSAGetLastError);
- GET_WINSOCK_FUNCTION(WSAEnumNetworkEvents);
- GET_WINSOCK_FUNCTION(WSAStartup);
- GET_WINSOCK_FUNCTION(WSACleanup);
- GET_WINSOCK_FUNCTION(closesocket);
- GET_WINSOCK_FUNCTION(ntohl);
- GET_WINSOCK_FUNCTION(htonl);
- GET_WINSOCK_FUNCTION(htons);
- GET_WINSOCK_FUNCTION(ntohs);
- GET_WINSOCK_FUNCTION(gethostbyname);
- GET_WINSOCK_FUNCTION(getservbyname);
- GET_WINSOCK_FUNCTION(inet_addr);
- GET_WINSOCK_FUNCTION(inet_ntoa);
- GET_WINSOCK_FUNCTION(connect);
- GET_WINSOCK_FUNCTION(bind);
- GET_WINSOCK_FUNCTION(setsockopt);
- GET_WINSOCK_FUNCTION(socket);
- GET_WINSOCK_FUNCTION(listen);
- GET_WINSOCK_FUNCTION(send);
- GET_WINSOCK_FUNCTION(ioctlsocket);
- GET_WINSOCK_FUNCTION(accept);
- GET_WINSOCK_FUNCTION(recv);
- GET_WINSOCK_FUNCTION(WSAIoctl);
+#ifndef NO_IPV6
+ wship6_module = LoadLibrary("wship6.dll");
+ if (wship6_module) {
+ GET_WINSOCK_FUNCTION(wship6_module, getaddrinfo);
+ GET_WINSOCK_FUNCTION(wship6_module, freeaddrinfo);
+ GET_WINSOCK_FUNCTION(wship6_module, getnameinfo);
+ }
+#endif
+
+ GET_WINSOCK_FUNCTION(winsock_module, WSAAsyncSelect);
+ GET_WINSOCK_FUNCTION(winsock_module, WSAEventSelect);
+ GET_WINSOCK_FUNCTION(winsock_module, select);
+ GET_WINSOCK_FUNCTION(winsock_module, WSAGetLastError);
+ GET_WINSOCK_FUNCTION(winsock_module, WSAEnumNetworkEvents);
+ GET_WINSOCK_FUNCTION(winsock_module, WSAStartup);
+ GET_WINSOCK_FUNCTION(winsock_module, WSACleanup);
+ GET_WINSOCK_FUNCTION(winsock_module, closesocket);
+ GET_WINSOCK_FUNCTION(winsock_module, ntohl);
+ GET_WINSOCK_FUNCTION(winsock_module, htonl);
+ GET_WINSOCK_FUNCTION(winsock_module, htons);
+ GET_WINSOCK_FUNCTION(winsock_module, ntohs);
+ GET_WINSOCK_FUNCTION(winsock_module, gethostbyname);
+ GET_WINSOCK_FUNCTION(winsock_module, getservbyname);
+ GET_WINSOCK_FUNCTION(winsock_module, inet_addr);
+ GET_WINSOCK_FUNCTION(winsock_module, inet_ntoa);
+ GET_WINSOCK_FUNCTION(winsock_module, connect);
+ GET_WINSOCK_FUNCTION(winsock_module, bind);
+ GET_WINSOCK_FUNCTION(winsock_module, setsockopt);
+ GET_WINSOCK_FUNCTION(winsock_module, socket);
+ GET_WINSOCK_FUNCTION(winsock_module, listen);
+ GET_WINSOCK_FUNCTION(winsock_module, send);
+ GET_WINSOCK_FUNCTION(winsock_module, ioctlsocket);
+ GET_WINSOCK_FUNCTION(winsock_module, accept);
+ GET_WINSOCK_FUNCTION(winsock_module, recv);
+ GET_WINSOCK_FUNCTION(winsock_module, WSAIoctl);