ã«ã¤ãã¯ããã®æ°åç ä¿®ãèªã㧠telnet 㨠nc -l ã使ã£ã¦webãµã¼ã/ãã©ã¦ã¶ãã£ãããã£ã¦ã¿ãã®ã§ããã1人ã§ãã£ã¦ãã¨å½¹å²ã®åãæ¿ãããã«ããªã£ã¦ããã®ã§ãæ¬å½ã®åºç¤ããã®webã¢ããªã±ã¼ã·ã§ã³å ¥éãè¦ãªããrubyã§ç°¡åãªwebãµã¼ããä½ã£ã¦ã¿ã¾ããã åè http://www.geekpage.jp/programming/ruby-network/ http://drascal.blog133.fc2.com/blog-entry-219.html v1 TCPã¯ã©ã¤ã¢ã³ãããã®æ¥ç¶ãåãä»ããããããã«ãã require "socket" server = TCPServer.open(8001) while true socket = server.accept while buffer = socket.gets p buffer end socket.c
{{#tags}}- {{label}}
{{/tags}}