Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 4eb48b954cf932f6d30c439317814ddd > files > 123

ruby1.9-doc-1.9.1.p378-3mdv2010.1.x86_64.rpm

#!/usr/bin/env ruby

require 'drb'
require 'drb/ssl'

there = ARGV.shift || "drbssl://localhost:3456"

config = Hash.new
config[:SSLVerifyMode] = OpenSSL::SSL::VERIFY_PEER
config[:SSLVerifyCallback] = lambda{|ok,x509_store|
  p [ok, x509_store.error_string]
  true
}

DRb.start_service(nil,nil,config)
h = DRbObject.new(nil, there)
while line = gets
  p h.hello(line.chomp)
end