My Linux Diary PHPãµã³ãã«ãèªå® ãµã¼ãã¼æ§æè¡ãVineLinuxãè±èªãCè¨èªãè»ãæ è¡ãªã©ã«ã¤ãã¦ã®è©±é¡ããã Perl/Tkã¯æ¥æ¬èªã«å¯¾å¿ãã¦ããªããã¨ãå¤æããã®ã§ã Ruby/Tkãåå¼·ãããã¨ã«ããã ã¾ãåãæ§ãªãã©ã¦ã¶ãä½ã£ã¦ã¿ãã ã½ã¼ã¹ã³ã¼ãã¯ä»¥ä¸ã®ããã«ãªã£ãã #!/usr/bin/ruby require 'tk' require 'socket' class HttpConnect def initialize(host,port) @host = host @port = port @sock = TCPSocket.open(@host,@port) @buffer = "" end def sndmsg(msg) print @sock.write(msg) end def rcvmsg while @sock.gets; @buffer
{{#tags}}- {{label}}
{{/tags}}