{"id":1323,"date":"2014-08-26T15:09:58","date_gmt":"2014-08-26T07:09:58","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1323"},"modified":"2014-08-26T15:09:58","modified_gmt":"2014-08-26T07:09:58","slug":"%e5%be%ae%e8%bd%af%e5%ae%98%e6%96%b9%e7%9a%84-%e8%81%94%e7%bd%91-%e6%8c%87%e5%af%bc%e8%af%b4%e6%98%8e-internet-%e5%ae%a2%e6%88%b7%e7%ab%af%e7%b1%bb%e7%9a%84%e5%bf%85%e5%a4%87%e6%9d%a1%e4%bb%b6","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1323","title":{"rendered":"\u5fae\u8f6f\u5b98\u65b9\u7684 \u8054\u7f51 \u6307\u5bfc\u8bf4\u660e -Internet \u5ba2\u6237\u7aef\u7c7b\u7684\u5fc5\u5907\u6761\u4ef6"},"content":{"rendered":"
\n
\u76f8\u5f53\u597d\u7684\u4e00\u4e2a\u5b98\u65b9\u8bf4\u660e \uff0c\u6458\u81ea\u5fae\u8f6f\u5b98\u65b9msdn<\/div>\n
\u51fa\u5904\uff1ahttp:\/\/technet.microsoft.com\/zh-cn\/4zc9bb2k(v=vs.89).aspx<\/a><\/div>\n
<\/div>\n
Internet \u5ba2\u6237\u7aef\u7c7b\u7684\u5fc5\u5907\u6761\u4ef6<\/span><\/div>\n<\/div>\n

<\/a><\/p>\n

\n
Visual Studio 2012 – Visual C++<\/div>\n
Internet \u5ba2\u6237\u7aef\u7c7b\u7684\u5fc5\u5907\u6761\u4ef6<\/div>\n
\n
\n
\n

Internet \u5ba2\u6237\u7aef\u6267\u884c\u7684\u67d0\u4e9b\u64cd\u4f5c (\u5982\u8bfb\u53d6\u6587\u4ef6\uff0c) \u7684\u5fc5\u5907\u8f6f\u4ef6\u7684\u64cd\u4f5c (\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4e3a Internet \u8fde\u63a5)\u3002\u00a0<\/span>\u4e0b\u8868\u5217\u51fa\u4e86\u7684\u7cfb\u7edf\u5fc5\u5907\u90e8\u5206\u5ba2\u6237\u7aef\u64cd\u4f5c\u3002<\/span><\/p>\n<\/div>\n

\n
\u5e38\u89c4 Internet URL (Gopher \u5de5\u5177\u3001FTP \u6216 HTTP)<\/div>\n
\n
\n\n
\n\n

\u64cd\u4f5c<\/span><\/p>\n<\/th>\n\n

\u7cfb\u7edf\u5fc5\u5907<\/span><\/p>\n<\/th>\n<\/tr>\n

\n
\n

\u5efa\u7acb\u8fde\u63a5\u3002<\/span><\/p>\n<\/td>\n

\n

CInternetSession<\/a>\u00a0\u521b\u5efa Internet \u5efa\u7acb\u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u7840\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u6253\u5f00 URL\u3002<\/span><\/p>\n<\/td>\n

\n

\u5efa\u7acb\u8fde\u63a5\u3002\u00a0<\/span>\u8c03\u7528\u00a0CInternetSession::OpenURL<\/a>\u3002\u00a0<\/span>OpenURL<\/strong>\u00a0\u51fd\u6570\u8fd4\u56de\u4e00\u53ea\u8bfb\u7684\u8d44\u6e90\u5bf9\u8c61\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

URL \u8bfb\u53d6\u6570\u636e\u3002<\/span><\/p>\n<\/td>\n

\n

\u6253\u5f00 URL\u3002\u00a0<\/span>\u8c03\u7528\u00a0CInternetFile::Read<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

Internet \u9009\u9879\u8bbe\u7f6e\u3002<\/span><\/p>\n<\/td>\n

\n

\u5efa\u7acb\u8fde\u63a5\u3002\u00a0<\/span>\u8c03\u7528\u00a0CInternetSession::SetOption<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u5c06\u8c03\u7528\u51fd\u6570\u7684\u72b6\u6001\u4fe1\u606f\u3002<\/span><\/p>\n<\/td>\n

\n

\u5efa\u7acb\u8fde\u63a5\u3002\u00a0<\/span>\u8c03\u7528\u00a0CInternetSession::EnableStatusCallback<\/a>\u3002\u00a0<\/span>\u91cd\u5199\u5904\u7406\u8c03\u7528\u7684\u00a0CInternetSession::OnStatusCallback<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

FTP<\/div>\n
\n
\n\n
\n\n

\u64cd\u4f5c<\/span><\/p>\n<\/th>\n\n

\u7cfb\u7edf\u5fc5\u5907<\/span><\/p>\n<\/th>\n<\/tr>\n

\n
\n

\u521b\u5efa FTP \u8fde\u63a5\u3002<\/span><\/p>\n<\/td>\n

\n

CInternetSession<\/a>\u00a0\u521b\u5efa\u4e3a\u6b64 Internet \u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u7840\u3002\u00a0<\/span>\u521b\u5efa\u8c03\u7528\u00a0CFtpConnection<\/a>\u00a0\u5bf9\u8c61\u7684\u00a0CInternetSession::GetFtpConnection<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u67e5\u627e\u7b2c\u4e00\u4e2a\u8d44\u6e90\u3002<\/span><\/p>\n<\/td>\n

\n

\u521b\u5efa FTP \u8fde\u63a5\u3002\u00a0<\/span>CFtpFileFind<\/a>\u00a0\u521b\u5efa\u5bf9\u8c61\u3002\u00a0<\/span>\u8c03\u7528\u00a0CFtpFileFind::FindFile<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u679a\u4e3e\u6240\u6709\u53ef\u7528\u8d44\u6e90\u3002<\/span><\/p>\n<\/td>\n

\n

\u67e5\u627e\u7b2c\u4e00\u4e2a\u6587\u4ef6\u3002\u00a0<\/span>\u8c03\u7528\u00a0CFtpFileFind::FindNextFile<\/a>\uff0c\u76f4\u5230\u8fd4\u56de\u9519\u8bef\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

FTP \u6253\u5f00\u6587\u4ef6\u3002<\/span><\/p>\n<\/td>\n

\n

\u521b\u5efa FTP \u8fde\u63a5\u3002\u00a0<\/span>\u8c03\u7528\u00a0CFtpConnection::OpenFile<\/a>\u00a0CInternetFile<\/a>\u00a0\u521b\u5efa\u5e76\u6253\u5f00\u5bf9\u8c61\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

FTP \u8bfb\u53d6\u6587\u4ef6\u3002<\/span><\/p>\n<\/td>\n

\n

\u6253\u5f00\u5177\u6709\u8bfb\u53d6\u8bbf\u95ee FTP \u7684\u6587\u4ef6\u3002\u00a0<\/span>\u8c03\u7528\u00a0CInternetFile::Read<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u5bf9 FTP \u6587\u4ef6\u7684\u5199\u5165\u3002<\/span><\/p>\n<\/td>\n

\n

\u6253\u5f00\u5177\u6709\u5199\u8bbf\u95ee FTP \u7684\u6587\u4ef6\u3002\u00a0<\/span>\u8c03\u7528\u00a0CInternetFile::Write<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u66f4\u6539\u670d\u52a1\u5668\u7684\u5ba2\u6237\u7684\u76ee\u5f55\u3002<\/span><\/p>\n<\/td>\n

\n

\u521b\u5efa FTP \u8fde\u63a5\u3002\u00a0<\/span>\u8c03\u7528\u00a0CFtpConnection::SetCurrentDirectory<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u68c0\u7d22\u670d\u52a1\u5668\u4e0a\u7684\u5ba2\u6237\u7aef\u4e0a\u7684\u5f53\u524d\u76ee\u5f55\u3002<\/span><\/p>\n<\/td>\n

\n

\u521b\u5efa FTP \u8fde\u63a5\u3002\u00a0<\/span>\u8c03\u7528\u00a0CFtpConnection::GetCurrentDirectory<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

HTTP<\/div>\n
\n
\n\n
\n\n

\u64cd\u4f5c<\/span><\/p>\n<\/th>\n\n

\u7cfb\u7edf\u5fc5\u5907<\/span><\/p>\n<\/th>\n<\/tr>\n

\n
\n

\u751f\u6210 HTTP \u8fde\u63a5\u3002<\/span><\/p>\n<\/td>\n

\n

CInternetSession<\/a>\u00a0\u521b\u5efa\u4e3a\u6b64 Internet \u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u7840\u3002\u00a0<\/span>\u521b\u5efa\u8c03\u7528\u00a0CHttpConnection<\/a>\u00a0\u5bf9\u8c61\u7684\u00a0CInternetSession::GetHttpConnection<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

HTTP \u6253\u5f00\u6587\u4ef6\u3002<\/span><\/p>\n<\/td>\n

\n

\u751f\u6210 HTTP \u8fde\u63a5\u3002\u00a0<\/span>\u521b\u5efa\u8c03\u7528\u00a0CHttpFile<\/a>\u00a0\u5bf9\u8c61\u7684\u00a0CHttpConnection::OpenRequest<\/a>\u3002\u00a0<\/span>\u8c03\u7528\u00a0CHttpFile::AddRequestHeaders<\/a>\u3002\u00a0<\/span>\u8c03\u7528CHttpFile::SendRequest<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

HTTP \u8bfb\u53d6\u6587\u4ef6\u3002<\/span><\/p>\n<\/td>\n

\n

HTTP \u6253\u5f00\u6587\u4ef6\u3002\u00a0<\/span>\u8c03\u7528\u00a0CInternetFile::Read<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u83b7\u53d6\u6709\u5173 HTTP \u8bf7\u6c42\u7684\u4fe1\u606f\u3002<\/span><\/p>\n<\/td>\n

\n

\u751f\u6210 HTTP \u8fde\u63a5\u3002\u00a0<\/span>\u521b\u5efa\u8c03\u7528\u00a0CHttpFile<\/a>\u00a0\u5bf9\u8c61\u7684\u00a0CHttpConnection::OpenRequest<\/a>\u3002\u00a0<\/span>\u8c03\u7528\u00a0CHttpFile::QueryInfo<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n

Gopher \u5de5\u5177<\/div>\n
\n
\n\n
\n\n

\u64cd\u4f5c<\/span><\/p>\n<\/th>\n\n

\u7cfb\u7edf\u5fc5\u5907<\/span><\/p>\n<\/th>\n<\/tr>\n

\n
\n

\u751f\u6210\u5730\u9f20\u8fde\u63a5\u3002<\/span><\/p>\n<\/td>\n

\n

CInternetSession<\/a>\u00a0\u521b\u5efa\u4e3a\u6b64 Internet \u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\u7684\u57fa\u7840\u3002\u00a0<\/span>\u521b\u5efa\u8c03\u7528\u00a0CGopherConnection<\/a>\u7684\u00a0CInternetSession::GetGopherConnection<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u67e5\u627e\u5f53\u524d\u76ee\u5f55\u4e2d\u7684\u7b2c\u4e00\u4e2a\u6587\u4ef6\u3002<\/span><\/p>\n<\/td>\n

\n

\u751f\u6210\u5730\u9f20\u8fde\u63a5\u3002\u00a0<\/span>CGopherFileFind<\/a>\u00a0\u521b\u5efa\u5bf9\u8c61\u3002\u00a0<\/span>\u521b\u5efa\u8c03\u7528\u00a0CGopherLocator<\/a>\u00a0\u5bf9\u8c61\u7684\u00a0CGopherConnection::CreateLocator<\/a>\u3002\u00a0<\/span>\u5b9a\u4f4d\u5668\u4f20\u9012\u5230CGopherFileFind::FindFile<\/a>\u3002\u00a0<\/span>\u5982\u679c\u60a8\u4e4b\u540e\uff0c\u9700\u8981\u8c03\u7528\u00a0CGopherFileFind::GetLocator<\/a>\u00a0\u83b7\u53d6\u6587\u4ef6\u7684\u5b9a\u4f4d\u5668\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u679a\u4e3e\u6240\u6709\u53ef\u7528\u6587\u4ef6\u3002<\/span><\/p>\n<\/td>\n

\n

\u67e5\u627e\u7b2c\u4e00\u4e2a\u6587\u4ef6\u3002\u00a0<\/span>\u8c03\u7528\u00a0CGopherFileFind::FindNextFile<\/a>\uff0c\u76f4\u5230\u8fd4\u56de\u9519\u8bef\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u6253\u5f00\u5730\u9f20\u6587\u4ef6\u3002<\/span><\/p>\n<\/td>\n

\n

\u751f\u6210\u5730\u9f20\u8fde\u63a5\u3002\u00a0<\/span>\u521b\u5efa\u5e26\u6709\u00a0CGopherConnection::CreateLocator<\/a>\u00a0\u7684\u4e00\u53f0\u5730\u9f20\u5b9a\u4f4d\u5668\u6216\u67e5\u627e\u5177\u6709\u7684\u00a0CGopherFileFind::GetLocator<\/a>\u4e00\u4e2a\u5b9a\u4f4d\u7b26 (URL)\u3002\u00a0<\/span>\u8c03\u7528CGopherConnection::OpenFile<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n

\n
\n

\u8bfb\u53d6\u5730\u9f20\u6587\u4ef6\u3002<\/span><\/p>\n<\/td>\n

\n

\u6253\u5f00\u5730\u9f20\u6587\u4ef6\u3002\u00a0<\/span>\u4f7f\u7528\u00a0CGopherFile<\/a>\u3002<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

\u76f8\u5f53\u597d\u7684\u4e00\u4e2a\u5b98\u65b9\u8bf4\u660e \uff0c\u6458\u81ea\u5fae\u8f6f\u5b98\u65b9msdn \u51fa\u5904\uff1ahttp:\/\/technet.microsoft.com\/zh-cn\/4zc9bb2k(v=vs.89).aspx Internet \u5ba2\u6237\u7aef\u7c7b\u7684\u5fc5\u5907\u6761\u4ef6 Visual Studio 2012 – Visual C++ Internet \u5ba2\u6237\u7aef\u7c7b\u7684\u5fc5\u5907\u6761\u4ef6 Internet \u5ba2\u6237\u7aef\u6267\u884c\u7684\u67d0\u4e9b\u64cd\u4f5c (\u5982\u8bfb\u53d6\u6587\u4ef6\uff0c) \u7684\u5fc5\u5907\u8f6f\u4ef6\u7684\u64cd\u4f5c (\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4e3a Internet \u8fde\u63a5)\u3002\u00a0\u4e0b\u8868\u5217\u51fa\u4e86\u7684\u7cfb\u7edf\u5fc5\u5907\u90e8\u5206\u5ba2\u6237\u7aef\u64cd\u4f5c\u3002 \u5e38\u89c4 Internet URL (Gopher \u5de5\u5177\u3001FTP \u6216 HTTP) \u64cd\u4f5c \u7cfb\u7edf\u5fc5\u5907 \u5efa\u7acb\u8fde\u63a5\u3002 CInter<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,219,9],"tags":[232,231],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1323"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1323"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1323\/revisions"}],"predecessor-version":[{"id":1324,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1323\/revisions\/1324"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1323"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}