WSAStartup(MAKEWORD(2,2), &wsd) //导入socket2.0库

/*
 *导入socket2.0库
 */
    WSADATA       wsd;
    if (WSAStartup(MAKEWORD(2,2), &wsd) != 0)
    {
        printf("Failed to load Winsock!/n");
        return 1;
    }


WSACleanup();

你可能感兴趣的:(WSAStartup(MAKEWORD(2,2), &wsd) //导入socket2.0库)