摘要: #include <stdio.h> #include <winsock.h> #include <string.h> #include <Windows.h>#pragma comment(lib, "ws2_32.lib") #define TIME_OUT_TIME 20 //connect超时时间20秒void geturl(char *url) { WSADATA WSAData={0}; SOCKET sockfd; struct sockaddr_in addr; struct hostent *pURL; ch 阅读全文
posted @ 2009-02-25 16:27 冷寒生 阅读(10377) 评论(0) 推荐(0) 编辑
IT知识库