摘要:
#include <winsock2.h> #include <stdio.h> #pragma comment(lib, “ws2_32.lib”) int main() { // 加载win socket WSADATA ws; int ret; ret = WSAStartup(MAKEWORD(2, 2), &ws); if (ret != 0) { printf(”WSAStartup() 失败!\n”); return -1; } // 创建侦听SOCKET SOCKET sLi... 阅读全文