下载网页文件

c++socket下载网页文件 2013-04-24

#pragma comment(lib, "ws2_32.lib")//远程IP,port,要下载的文件的绝对路径,本地保存的绝对路径bool GetHTTP(string sRemoteIP,u_short nRemotePort,string sRemoteFilePath,string sSavePath) { try { WORD wVersionRequested = MAKEWORD(1,1); WSADATA wsaData; int nRet; nRet = WSASt
一周排行