| * These are example functions doing socket init that Windows |
| * require. If you don't use windows, you can safely ignore this crap. |
| static void win32_cleanup(void) |
| static CURLcode win32_init(void) |
| wVersionRequested = MAKEWORD(1, 1); |
| err = WSAStartup(wVersionRequested, &wsaData); |
| /* Tell the user that we couldn't find a useable */ |
| /* Confirm that the Windows Sockets DLL supports 1.1.*/ |
| /* Note that if the DLL supports versions greater */ |
| /* than 1.1 in addition to 1.1, it will still return */ |
| /* 1.1 in wVersion since that is the version we */ |
| if ( LOBYTE( wsaData.wVersion ) != 1 || |
| HIBYTE( wsaData.wVersion ) != 1 ) { |
| /* Tell the user that we couldn't find a useable */ |