MacRuby 0.7ããWEBrickãããããåãããã«ãªãã¾ããã¾ã ã¯ãªãã£ã«ã«ãªæ¡ä»¶ã«ã¯ä½¿ããªãããããã¾ãããããã¡ã¤ã«ãé
å¸ããã¨ãã«ç°¡æçãªãµã¼ãã¨ãã¦ä½¿ãããã¨æãã¾ããã©ãããªãBonjourã使ã£ã¦ããµã¼ãã®ã¢ãã¬ã¹ã¨ãã¼ãçªå·ãéç¥ãã¦ããããã¨ãåå¼·ä¼ãªã©ã¡ãã£ã¨ããæ©ä¼ã«ä¾¿å©ã«ä½¿ããããã framework "Foundation" require "webrick" PORT = 8080 SERVER_NAME = "webrick" s = WEBrick::HTTPServer.new( :Port => PORT, :DocumentRoot => File.join(Dir::pwd, ".") ) trap("INT") { s.shutdown } # Bonjour netservice = NSNetService.alloc.initWit
{{#tags}}- {{label}}
{{/tags}}