{"author_name":"shuzo_kino","title":"nodejs\u3067tcp socket\u3092\u3064\u304b\u3046","type":"rich","categories":["node.js"],"version":"1.0","blog_title":"Bye Bye Moore","url":"https://shuzo-kino.hateblo.jp/entry/2022/02/15/235930","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2022%2F02%2F15%2F235930\" title=\"nodejs\u3067tcp socket\u3092\u3064\u304b\u3046 - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/shuzo_kino/","image_url":null,"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","published":"2022-02-15 23:59:30","width":"100%","description":"\u5b9f\u969b\u306e\u3068\u3053\u308d \u9001\u308a\u624b var net = require('net'); var HOST = 'localhost'; var PORT = 9999; var client = new net.Socket(); client.setEncoding('utf-8'); client.setTimeout(1000); client.connect(PORT, HOST, function() { console.log('CONNECTED TO: ' + HOST + ':' + PORT); //\u66f8\u304d\u8fbc\u307f client.write(\"x=1000\\r\"); }); //\u9589\u3058\u305f\u6642\u306e\u51e6\u7406\u2026","blog_url":"https://shuzo-kino.hateblo.jp/"}