{"id":114341,"date":"2024-03-22T22:45:02","date_gmt":"2024-03-22T13:45:02","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2024-04-05T19:36:13","modified_gmt":"2024-04-05T10:36:13","slug":"c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"C++ \u3067 BT \u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>BT\u30b7\u30fc\u30c9\u3092\u30af\u30ed\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3084HTML\u30d1\u30fc\u30b7\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3092C++\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059.<\/p>\n<ol>\n<li>\u6700\u521d\u306b\u3001libcurl\u306e\u3088\u3046\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u3044\u3066\u3001BT\u7a2e\u5b50\u30b5\u30a4\u30c8\u306eURL\u306b\u63a5\u7d9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<li>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3057\u3066\u3001Web\u30da\u30fc\u30b8\u306eHTML\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<li>libxml2\u3084boost::html\u306a\u3069\u306eHTML\u89e3\u6790\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066HTML\u30bd\u30fc\u30b9\u3092\u30d1\u30fc\u30b9\u3057\u3001\u305d\u3053\u304b\u3089\u30b7\u30fc\u30c9\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ea\u30f3\u30af\u3092\u62bd\u51fa\u3057\u307e\u3059\u3002<\/li>\n<li>libcurl\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u306e\u305f\u3081\u306e\u30b7\u30fc\u30c9\u30ea\u30f3\u30af\u306b\u518d\u63a5\u7d9a\u3057\u3001\u30b7\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0b\u306f\u3001libcurl\u30e9\u30a4\u30d6\u30e9\u30ea\u3068boost:\uff1ahtml\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066BT\u30b7\u30fc\u30c9\u3092\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u3059\u308b\u3001\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u306e\u4f8b\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;iostream&gt;<\/span><\/span>\r\n<span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;fstream&gt;<\/span><\/span>\r\n<span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;string&gt;<\/span><\/span>\r\n<span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;curl\/curl.h&gt;<\/span><\/span>\r\n<span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;boost\/html\/parser.hpp&gt;<\/span><\/span>\r\n<span class=\"hljs-meta\">#<span class=\"hljs-keyword\">include<\/span> <span class=\"hljs-string\">&lt;boost\/html\/element.hpp&gt;<\/span><\/span>\r\n\r\n<span class=\"hljs-function\"><span class=\"hljs-type\">size_t<\/span> <span class=\"hljs-title\">WriteCallback<\/span><span class=\"hljs-params\">(<span class=\"hljs-type\">void<\/span>* contents, <span class=\"hljs-type\">size_t<\/span> size, <span class=\"hljs-type\">size_t<\/span> nmemb, std::string* output)<\/span>\r\n<\/span>{\r\n    <span class=\"hljs-type\">size_t<\/span> total_size = size * nmemb;\r\n    output-&gt;<span class=\"hljs-built_in\">append<\/span>((<span class=\"hljs-type\">char<\/span>*)contents, total_size);\r\n    <span class=\"hljs-keyword\">return<\/span> total_size;\r\n}\r\n\r\n<span class=\"hljs-function\"><span class=\"hljs-type\">int<\/span> <span class=\"hljs-title\">main<\/span><span class=\"hljs-params\">()<\/span>\r\n<\/span>{\r\n    CURL* curl;\r\n    CURLcode res;\r\n    std::string html;\r\n\r\n    <span class=\"hljs-comment\">\/\/ \u521d\u59cb\u5316libcurl<\/span>\r\n    <span class=\"hljs-built_in\">curl_global_init<\/span>(CURL_GLOBAL_DEFAULT);\r\n\r\n    <span class=\"hljs-comment\">\/\/ \u521b\u5efa\u4e00\u4e2aCURL\u5bf9\u8c61<\/span>\r\n    curl = <span class=\"hljs-built_in\">curl_easy_init<\/span>();\r\n    <span class=\"hljs-keyword\">if<\/span>(curl) {\r\n        <span class=\"hljs-comment\">\/\/ \u8bbe\u7f6eURL<\/span>\r\n        <span class=\"hljs-built_in\">curl_easy_setopt<\/span>(curl, CURLOPT_URL, <span class=\"hljs-string\">\"http:\/\/example.com\"<\/span>);\r\n\r\n        <span class=\"hljs-comment\">\/\/ \u8bbe\u7f6e\u56de\u8c03\u51fd\u6570\uff0c\u7528\u4e8e\u63a5\u6536HTML\u6e90\u4ee3\u7801<\/span>\r\n        <span class=\"hljs-built_in\">curl_easy_setopt<\/span>(curl, CURLOPT_WRITEFUNCTION, WriteCallback);\r\n        <span class=\"hljs-built_in\">curl_easy_setopt<\/span>(curl, CURLOPT_WRITEDATA, &amp;html);\r\n\r\n        <span class=\"hljs-comment\">\/\/ \u6267\u884cHTTP\u8bf7\u6c42<\/span>\r\n        res = <span class=\"hljs-built_in\">curl_easy_perform<\/span>(curl);\r\n\r\n        <span class=\"hljs-comment\">\/\/ \u68c0\u67e5\u8bf7\u6c42\u662f\u5426\u6210\u529f<\/span>\r\n        <span class=\"hljs-keyword\">if<\/span>(res == CURLE_OK) {\r\n            <span class=\"hljs-comment\">\/\/ \u4f7f\u7528boost::html\u89e3\u6790HTML\u6e90\u4ee3\u7801<\/span>\r\n            boost::html::document doc = boost::html::<span class=\"hljs-built_in\">parse<\/span>(html);\r\n\r\n            <span class=\"hljs-comment\">\/\/ \u904d\u5386HTML\u6587\u6863\uff0c\u67e5\u627e\u79cd\u5b50\u4e0b\u8f7d\u94fe\u63a5<\/span>\r\n            <span class=\"hljs-keyword\">for<\/span>(<span class=\"hljs-type\">const<\/span> <span class=\"hljs-keyword\">auto<\/span>&amp; node : doc) {\r\n                <span class=\"hljs-keyword\">if<\/span>(node.<span class=\"hljs-built_in\">is_element<\/span>() &amp;&amp; node.<span class=\"hljs-built_in\">as_element<\/span>().<span class=\"hljs-built_in\">tag<\/span>() == boost::html::element::a) {\r\n                    <span class=\"hljs-type\">const<\/span> <span class=\"hljs-keyword\">auto<\/span>&amp; attrs = node.<span class=\"hljs-built_in\">as_element<\/span>().<span class=\"hljs-built_in\">attributes<\/span>();\r\n                    <span class=\"hljs-keyword\">for<\/span>(<span class=\"hljs-type\">const<\/span> <span class=\"hljs-keyword\">auto<\/span>&amp; attr : attrs) {\r\n                        <span class=\"hljs-keyword\">if<\/span>(attr.first == <span class=\"hljs-string\">\"href\"<\/span> &amp;&amp; attr.second.<span class=\"hljs-built_in\">find<\/span>(<span class=\"hljs-string\">\".torrent\"<\/span>) != std::string::npos) {\r\n                            std::string torrent_url = attr.second;\r\n\r\n                            <span class=\"hljs-comment\">\/\/ \u4e0b\u8f7d\u79cd\u5b50\u6587\u4ef6<\/span>\r\n                            CURL* curl_torrent = <span class=\"hljs-built_in\">curl_easy_init<\/span>();\r\n                            <span class=\"hljs-keyword\">if<\/span>(curl_torrent) {\r\n                                <span class=\"hljs-built_in\">curl_easy_setopt<\/span>(curl_torrent, CURLOPT_URL, torrent_url.<span class=\"hljs-built_in\">c_str<\/span>());\r\n\r\n                                <span class=\"hljs-function\">std::ofstream <span class=\"hljs-title\">file<\/span><span class=\"hljs-params\">(<span class=\"hljs-string\">\"torrent.torrent\"<\/span>, std::ios::binary)<\/span><\/span>;\r\n                                <span class=\"hljs-built_in\">curl_easy_setopt<\/span>(curl_torrent, CURLOPT_WRITEDATA, &amp;file);\r\n\r\n                                <span class=\"hljs-built_in\">curl_easy_perform<\/span>(curl_torrent);\r\n\r\n                                file.<span class=\"hljs-built_in\">close<\/span>();\r\n                                <span class=\"hljs-built_in\">curl_easy_cleanup<\/span>(curl_torrent);\r\n                            }\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n\r\n        <span class=\"hljs-comment\">\/\/ \u6e05\u7406CURL\u5bf9\u8c61<\/span>\r\n        <span class=\"hljs-built_in\">curl_easy_cleanup<\/span>(curl);\r\n    }\r\n\r\n    <span class=\"hljs-comment\">\/\/ \u6e05\u7406libcurl<\/span>\r\n    <span class=\"hljs-built_in\">curl_global_cleanup<\/span>();\r\n\r\n    <span class=\"hljs-keyword\">return<\/span> <span class=\"hljs-number\">0<\/span>;\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u3067\u306f\u3001libcurl\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3063\u3066HTML\u30bd\u30fc\u30b9\u3092\u6587\u5b57\u5217\u5909\u6570html\u306b\u683c\u7d0d\u3057\u3066\u3044\u307e\u3059\u3002\u6b21\u306b\u3001boost::html\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066HTML\u30bd\u30fc\u30b9\u3092\u89e3\u6790\u3057\u3001HTML\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u30c8\u30e9\u30d0\u30fc\u30b9\u3057\u3066\u3001\u30b7\u30fc\u30c9\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ea\u30f3\u30af\u3092\u63a2\u3057\u3066\u3044\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001\u518d\u3073libcurl\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u30b7\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6ce8\u610f: \u3053\u308c\u306f\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3042\u308a\u3001\u5b9f\u969b\u306eBT\u7a2e\u5b50\u30b5\u30a4\u30c8\u306eHTML\u69cb\u9020\u3084\u7a2e\u5b50\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30ea\u30f3\u30af\u306e\u898f\u5247\u306b\u5408\u308f\u305b\u3066\u9069\u5b9c\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BT\u30b7\u30fc\u30c9\u3092\u30af\u30ed\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3084HTML\u30d1\u30fc\u30b7\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3092C++\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059. \u6700\u521d\u306b\u3001libcurl\u306e\u3088\u3046\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u3044\u3066\u3001BT\u7a2e\u5b50\u30b5\u30a4\u30c8\u306eURL\u306b\u63a5\u7d9a\u3059\u308b [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-114341","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>C++ \u3067 BT \u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/c-\u3067-bt-\u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"C++ \u3067 BT \u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"BT\u30b7\u30fc\u30c9\u3092\u30af\u30ed\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3084HTML\u30d1\u30fc\u30b7\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3092C++\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059. \u6700\u521d\u306b\u3001libcurl\u306e\u3088\u3046\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u3044\u3066\u3001BT\u7a2e\u5b50\u30b5\u30a4\u30c8\u306eURL\u306b\u63a5\u7d9a\u3059\u308b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/c-\u3067-bt-\u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-22T13:45:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-05T10:36:13+00:00\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u84ee, \u7ffc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"C++ \u3067 BT \u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-22T13:45:02+00:00\",\"dateModified\":\"2024-04-05T10:36:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C++ \u3067 BT \u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"C++ \u3067 BT \u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/c-\u3067-bt-\u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"C++ \u3067 BT \u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5","og_description":"BT\u30b7\u30fc\u30c9\u3092\u30af\u30ed\u30fc\u30eb\u3059\u308b\u306b\u306f\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3084HTML\u30d1\u30fc\u30b7\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3092C++\u3067\u4f7f\u7528\u3067\u304d\u307e\u3059. \u6700\u521d\u306b\u3001libcurl\u306e\u3088\u3046\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u7528\u3044\u3066\u3001BT\u7a2e\u5b50\u30b5\u30a4\u30c8\u306eURL\u306b\u63a5\u7d9a\u3059\u308b [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/c-\u3067-bt-\u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-22T13:45:02+00:00","article_modified_time":"2024-04-05T10:36:13+00:00","author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"C++ \u3067 BT \u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-22T13:45:02+00:00","dateModified":"2024-04-05T10:36:13+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"C++ \u3067 BT \u30b7\u30fc\u30c9\u306e\u30af\u30ed\u30fc\u30eb\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/c-%e3%81%a7-bt-%e3%82%b7%e3%83%bc%e3%83%89%e3%81%ae%e3%82%af%e3%83%ad%e3%83%bc%e3%83%ab%e3%82%92%e5%ae%9f%e8%a3%85%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/114341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=114341"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/114341\/revisions"}],"predecessor-version":[{"id":323293,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/114341\/revisions\/323293"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=114341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=114341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=114341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}