require 'drb/drb' require 'drb/unix' require 'drb/gw' # Install the GWIdConv DRb.install_id_conv DRb::GWIdConv.new # Create the Gateway Services gw = DRb::GW.new s1 = DRb::DRbServer.new ARGV.shift, gw s2 = DRb::DRbServer.new ARGV.shift, gw # Use these URIs for the endpoints you want to connect puts "UNIX: #{s1.uri}" puts "TCP: #{s2.uri}" # Wait for the threads to quit before exiting s1.thread.join s2.thread.join