3 Copyright (c) 2000 Masatoshi SEKI
9 % ruby -I. extserv_test.rb server
10 druby://yourhost:12345
14 % ruby -I. extserv_test.rb druby://yourhost:12345
23 raise "usage:\nserver: #{$0} server [<uri>]\nclient: #{$0} [quit] <uri>" unless it
45 when 'itest1', 'itest2'
49 server = DRb::DRbServer.new(nil, front)
50 es = DRb::ExtServ.new(ARGV.shift, ARGV.shift, server)
54 require 'drb/extservm'
56 DRb::ExtServManager.command['itest1'] = "ruby -I. #{$0} itest1"
57 DRb::ExtServManager.command['itest2'] = "ruby -I. #{$0} itest2"
59 s = DRb::ExtServManager.new
60 DRb.start_service(ARGV.shift, s)
66 uri = (cmd == 'quit') ? ARGV.shift : cmd
69 s = DRbObject.new(nil, uri)
70 t1 = s.service('itest1').front
72 t2 = s.service('itest2').front
76 s.service('itest1').stop_service
77 s.service('itest2').stop_service