摘要: #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... 阅读全文
posted @ 2012-04-19 00:20 瓦楞球 阅读(3488) 评论(0) 推荐(0) 编辑