{"author_name":"closer","author_url":"https://blog.hatena.ne.jp/closer/","type":"rich","blog_url":"https://closer.hatenadiary.org/","image_url":null,"provider_name":"Hatena Blog","title":"Ruby \u3067\u30bd\u30b1\u30c3\u30c8\u901a\u4fe1","height":"190","provider_url":"https://hatena.blog","description":"\u30b5\u30fc\u30d0\u5074\u3067\u30bd\u30b1\u30c3\u30c8\u3092\u5f85\u3061\u53d7\u3051\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u304b\u3089\u300cHello World!\u300d\u3092\u9001\u4fe1\u3057\u3066\u30b5\u30fc\u30d0\u5074\u3067\u8868\u793a\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304f\u3002server.rb require \"socket\" gs = TCPServer.open(4444) loop do Thread.start(gs.accept) do |s| while s.gets print $_ end s.close end end TCPServer#accept \u306f\u63a5\u7d9a\u3092\u5f85\u3061\u53d7\u3051\u308b\u30e1\u30bd\u30c3\u30c9\u3002\u63a5\u7d9a\u304c\u3042\u308b\u307e\u3067\u5f85\u6a5f\u3059\u308b\u3002client.rb require \"socket\" s = TCPSocket.open(\"localhost\", 444\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcloser.hatenadiary.org%2Fentry%2F20081116%2F1226805621\" title=\"Ruby \u3067\u30bd\u30b1\u30c3\u30c8\u901a\u4fe1 - TETRIS 3\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","categories":[],"blog_title":"TETRIS 3","published":"2008-11-16 12:20:21","width":"100%","url":"https://closer.hatenadiary.org/entry/20081116/1226805621"}