{"id":109721,"date":"2024-03-22T16:02:37","date_gmt":"2024-03-22T07:02:37","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/"},"modified":"2024-03-27T14:15:23","modified_gmt":"2024-03-27T05:15:23","slug":"go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/","title":{"rendered":"Go\u8a00\u8a9e\u306b\u3088\u308bTCP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002"},"content":{"rendered":"<p>TCP\u30d9\u30fc\u30b9\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u5b9f\u88c5\u306b\u306f\u3001\u4ee5\u4e0b\u624b\u9806\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ol>\n<li>\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\uff08net\u3001io\u3001bufio\u3001sync \u306a\u3069\uff09\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3002<\/li>\n<li>\u30ea\u30b9\u30cb\u30f3\u30b0\u30a2\u30c9\u30ec\u30b9\u3001\u30dd\u30fc\u30c8\u3001\u51e6\u7406\u95a2\u6570\u3092\u542b\u3080TCP\u30b5\u30fc\u30d0\u306e\u69cb\u9020\u4f53\u3092\u4f5c\u6210\u3059\u308b\u3002<\/li>\n<li>TCP\u30b5\u30fc\u30d0\u306e\u521d\u671f\u5316\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3057\u3001\u30ea\u30c3\u30b9\u30f3\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/li>\n<li>\u6307\u5b9a\u306e\u30a2\u30c9\u30ec\u30b9\u3068\u30dd\u30fc\u30c8\u3092\u76e3\u8996\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u63a5\u7d9a\u8981\u6c42\u3092\u53d7\u3051\u5165\u308c\u308bTCP\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5\u65b9\u6cd5\u3092\u5b9f\u88c5\u3059\u308b\u3002<\/li>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u63a5\u7d9a\u8981\u6c42\u3092\u53d7\u3051\u5165\u308c\u305f\u3089\u3001\u65b0\u3057\u3044\u30b4\u30eb\u30fc\u30c1\u30f3\u3092\u4f5c\u6210\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u8981\u6c42\u3092\u51e6\u7406\u3057\u307e\u3059\u3002<\/li>\n<li>\u51e6\u7406\u95a2\u6570\u3092TCP\u30b5\u30fc\u30d0\u306b\u5b9f\u88c5\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u8981\u6c42\u306b\u5fdc\u7b54\u3057\u307e\u3059\u3002\u51e6\u7406\u95a2\u6570\u306f\u5177\u4f53\u7684\u306a\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u8a2d\u8a08\u3067\u304d\u3001\u72ec\u81ea\u30d7\u30ed\u30c8\u30b3\u30eb\u3084\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306a\u3069\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/li>\n<li>\u51e6\u7406\u95a2\u6570\u3067\u306f\u3001net.Conn\u306eRead\u3068Write\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u66f8\u304d\u3057\u307e\u3059\u3002<\/li>\n<li>TCP\u30b5\u30fc\u30d0\u306e\u7d42\u4e86\u30e1\u30bd\u30c3\u30c9\u3067\u3001\u30ea\u30b9\u30cb\u30f3\u30b0\u63a5\u7d9a\u3092\u7d42\u4e86\u3057\u307e\u3059\u3002<\/li>\n<li>\u30e1\u30a4\u30f3\u95a2\u6570\u3067TCP\u30b5\u30fc\u30d0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3001\u521d\u671f\u5316\u30e1\u30bd\u30c3\u30c9\u3068\u958b\u59cb\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u521d\u671f\u5316\u3068\u958b\u59cb\u3092\u884c\u3044\u307e\u3059\u3002<\/li>\n<li>\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u3001TCP\u30d9\u30fc\u30b9\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ol>\n<p>\u30c8\u30e9\u30f3\u30b9\u30df\u30c3\u30b7\u30e7\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30d7\u30ed\u30c8\u30b3\u30eb\uff08TCP\uff09\u30b5\u30fc\u30d0\u30fc\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u5b9f\u73fe\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3059\u3001\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u306b\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">package<\/span> main\r\n\r\n<span class=\"hljs-keyword\">import<\/span> (\r\n\t<span class=\"hljs-string\">\"bufio\"<\/span>\r\n\t<span class=\"hljs-string\">\"fmt\"<\/span>\r\n\t<span class=\"hljs-string\">\"io\"<\/span>\r\n\t<span class=\"hljs-string\">\"net\"<\/span>\r\n\t<span class=\"hljs-string\">\"sync\"<\/span>\r\n)\r\n\r\n<span class=\"hljs-comment\">\/\/ TCP\u670d\u52a1\u5668\u7ed3\u6784\u4f53<\/span>\r\n<span class=\"hljs-keyword\">type<\/span> TCPServer <span class=\"hljs-keyword\">struct<\/span> {\r\n\tAddress    <span class=\"hljs-type\">string<\/span>\r\n\tPort       <span class=\"hljs-type\">int<\/span>\r\n\thandlerMap <span class=\"hljs-keyword\">map<\/span>[<span class=\"hljs-type\">string<\/span>]<span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span><span class=\"hljs-params\">(net.Conn)<\/span><\/span>\r\n}\r\n\r\n<span class=\"hljs-comment\">\/\/ \u521d\u59cb\u5316\u670d\u52a1\u5668<\/span>\r\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span> <span class=\"hljs-params\">(server *TCPServer)<\/span><\/span> Init(address <span class=\"hljs-type\">string<\/span>, port <span class=\"hljs-type\">int<\/span>) {\r\n\tserver.Address = address\r\n\tserver.Port = port\r\n\tserver.handlerMap = <span class=\"hljs-built_in\">make<\/span>(<span class=\"hljs-keyword\">map<\/span>[<span class=\"hljs-type\">string<\/span>]<span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span><span class=\"hljs-params\">(net.Conn)<\/span><\/span>)\r\n}\r\n\r\n<span class=\"hljs-comment\">\/\/ \u542f\u52a8\u670d\u52a1\u5668<\/span>\r\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span> <span class=\"hljs-params\">(server *TCPServer)<\/span><\/span> Start() {\r\n\tlistener, err := net.Listen(<span class=\"hljs-string\">\"tcp\"<\/span>, fmt.Sprintf(<span class=\"hljs-string\">\"%s:%d\"<\/span>, server.Address, server.Port))\r\n\t<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\n\t\tfmt.Println(<span class=\"hljs-string\">\"Error starting TCP server:\"<\/span>, err)\r\n\t\t<span class=\"hljs-keyword\">return<\/span>\r\n\t}\r\n\t<span class=\"hljs-keyword\">defer<\/span> listener.Close()\r\n\r\n\tfmt.Println(<span class=\"hljs-string\">\"TCP server started, listening on\"<\/span>, fmt.Sprintf(<span class=\"hljs-string\">\"%s:%d\"<\/span>, server.Address, server.Port))\r\n\r\n\t<span class=\"hljs-keyword\">for<\/span> {\r\n\t\tconn, err := listener.Accept()\r\n\t\t<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\n\t\t\tfmt.Println(<span class=\"hljs-string\">\"Error accepting connection:\"<\/span>, err)\r\n\t\t\t<span class=\"hljs-keyword\">return<\/span>\r\n\t\t}\r\n\r\n\t\t<span class=\"hljs-keyword\">go<\/span> server.handleConnection(conn)\r\n\t}\r\n}\r\n\r\n<span class=\"hljs-comment\">\/\/ \u5904\u7406\u8fde\u63a5<\/span>\r\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span> <span class=\"hljs-params\">(server *TCPServer)<\/span><\/span> handleConnection(conn net.Conn) {\r\n\t<span class=\"hljs-keyword\">defer<\/span> conn.Close()\r\n\r\n\treader := bufio.NewReader(conn)\r\n\twriter := bufio.NewWriter(conn)\r\n\r\n\t<span class=\"hljs-keyword\">for<\/span> {\r\n\t\tline, _, err := reader.ReadLine()\r\n\t\t<span class=\"hljs-keyword\">if<\/span> err != <span class=\"hljs-literal\">nil<\/span> {\r\n\t\t\t<span class=\"hljs-keyword\">if<\/span> err != io.EOF {\r\n\t\t\t\tfmt.Println(<span class=\"hljs-string\">\"Error reading from connection:\"<\/span>, err)\r\n\t\t\t}\r\n\t\t\t<span class=\"hljs-keyword\">break<\/span>\r\n\t\t}\r\n\r\n\t\t<span class=\"hljs-comment\">\/\/ \u5904\u7406\u8bf7\u6c42<\/span>\r\n\t\thandler, ok := server.handlerMap[<span class=\"hljs-type\">string<\/span>(line)]\r\n\t\t<span class=\"hljs-keyword\">if<\/span> ok {\r\n\t\t\thandler(conn)\r\n\t\t} <span class=\"hljs-keyword\">else<\/span> {\r\n\t\t\twriter.WriteString(<span class=\"hljs-string\">\"Unknown command\\n\"<\/span>)\r\n\t\t\twriter.Flush()\r\n\t\t}\r\n\t}\r\n}\r\n\r\n<span class=\"hljs-comment\">\/\/ \u6ce8\u518c\u5904\u7406\u51fd\u6570<\/span>\r\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span> <span class=\"hljs-params\">(server *TCPServer)<\/span><\/span> RegisterHandler(command <span class=\"hljs-type\">string<\/span>, handler <span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span><span class=\"hljs-params\">(net.Conn)<\/span><\/span>) {\r\n\tserver.handlerMap[command] = handler\r\n}\r\n\r\n<span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span> <span class=\"hljs-title\">main<\/span><span class=\"hljs-params\">()<\/span><\/span> {\r\n\tserver := &amp;TCPServer{}\r\n\tserver.Init(<span class=\"hljs-string\">\"localhost\"<\/span>, <span class=\"hljs-number\">8888<\/span>)\r\n\tserver.RegisterHandler(<span class=\"hljs-string\">\"hello\"<\/span>, <span class=\"hljs-function\"><span class=\"hljs-keyword\">func<\/span><span class=\"hljs-params\">(conn net.Conn)<\/span><\/span> {\r\n\t\twriter := bufio.NewWriter(conn)\r\n\t\twriter.WriteString(<span class=\"hljs-string\">\"Hello, World!\\n\"<\/span>)\r\n\t\twriter.Flush()\r\n\t})\r\n\r\n\tserver.Start()\r\n}\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306fTCP\u30b5\u30fc\u30d0\u30fc\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u5b9f\u88c5\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u7570\u306a\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u3058\u3066\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002main\u95a2\u6570\u3067\u306f\u3001RegisterHandler\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3001\u7570\u306a\u308b\u51e6\u7406\u95a2\u6570\u3092\u767b\u9332\u3057\u307e\u3059\u3002\u305d\u306e\u5f8c\u3001Start\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u3066\u3055\u307e\u3056\u307e\u306a\u30b3\u30de\u30f3\u30c9\u3092\u9001\u4fe1\u3067\u304d\u3001\u30b5\u30fc\u30d0\u30fc\u306f\u30b3\u30de\u30f3\u30c9\u306b\u5fdc\u3058\u3066\u5bfe\u5fdc\u3059\u308b\u51e6\u7406\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3066\u51e6\u7406\u3057\u3001\u7d50\u679c\u3092\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u8fd4\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TCP\u30d9\u30fc\u30b9\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u5b9f\u88c5\u306b\u306f\u3001\u4ee5\u4e0b\u624b\u9806\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\uff08net\u3001io\u3001bufio\u3001sync \u306a\u3069\uff09\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3002 \u30ea\u30b9\u30cb\u30f3\u30b0\u30a2\u30c9\u30ec\u30b9\u3001\u30dd\u30fc\u30c8\u3001\u51e6\u7406\u95a2\u6570\u3092\u542b\u3080TCP\u30b5\u30fc\u30d0\u306e\u69cb\u9020\u4f53\u3092\u4f5c\u6210\u3059 [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-109721","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>Go\u8a00\u8a9e\u306b\u3088\u308bTCP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 - 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\/go\u8a00\u8a9e\u306b\u3088\u308btcp\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Go\u8a00\u8a9e\u306b\u3088\u308bTCP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:description\" content=\"TCP\u30d9\u30fc\u30b9\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u5b9f\u88c5\u306b\u306f\u3001\u4ee5\u4e0b\u624b\u9806\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\uff08net\u3001io\u3001bufio\u3001sync \u306a\u3069\uff09\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3002 \u30ea\u30b9\u30cb\u30f3\u30b0\u30a2\u30c9\u30ec\u30b9\u3001\u30dd\u30fc\u30c8\u3001\u51e6\u7406\u95a2\u6570\u3092\u542b\u3080TCP\u30b5\u30fc\u30d0\u306e\u69cb\u9020\u4f53\u3092\u4f5c\u6210\u3059 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/go\u8a00\u8a9e\u306b\u3088\u308btcp\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-22T07:02:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T05:15:23+00:00\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\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=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\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\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/\",\"name\":\"Go\u8a00\u8a9e\u306b\u3088\u308bTCP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-22T07:02:37+00:00\",\"dateModified\":\"2024-03-27T05:15:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Go\u8a00\u8a9e\u306b\u3088\u308bTCP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\"}]},{\"@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\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Go\u8a00\u8a9e\u306b\u3088\u308bTCP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 - 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\/go\u8a00\u8a9e\u306b\u3088\u308btcp\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\/","og_locale":"ja_JP","og_type":"article","og_title":"Go\u8a00\u8a9e\u306b\u3088\u308bTCP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002","og_description":"TCP\u30d9\u30fc\u30b9\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u5b9f\u88c5\u306b\u306f\u3001\u4ee5\u4e0b\u624b\u9806\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\uff08net\u3001io\u3001bufio\u3001sync \u306a\u3069\uff09\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u3002 \u30ea\u30b9\u30cb\u30f3\u30b0\u30a2\u30c9\u30ec\u30b9\u3001\u30dd\u30fc\u30c8\u3001\u51e6\u7406\u95a2\u6570\u3092\u542b\u3080TCP\u30b5\u30fc\u30d0\u306e\u69cb\u9020\u4f53\u3092\u4f5c\u6210\u3059 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/go\u8a00\u8a9e\u306b\u3088\u308btcp\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-22T07:02:37+00:00","article_modified_time":"2024-03-27T05:15:23+00:00","author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\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\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/","name":"Go\u8a00\u8a9e\u306b\u3088\u308bTCP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-22T07:02:37+00:00","dateModified":"2024-03-27T05:15:23+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Go\u8a00\u8a9e\u306b\u3088\u308bTCP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002"}]},{"@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\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/go%e8%a8%80%e8%aa%9e%e3%81%ab%e3%82%88%e3%82%8btcp%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af%e3%81%ae%e4%bd%9c%e6%88%90%e6%96%b9%e6%b3%95%e3%82%92%e6%95%99%e3%81%88%e3%81%a6\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/109721","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=109721"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/109721\/revisions"}],"predecessor-version":[{"id":190274,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/109721\/revisions\/190274"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=109721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=109721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=109721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}