Sha256: cc45d37b5be73db3110a7ca5171e955fad0b0c7815f400a8ac8f9c4073ecc4ae

Contents?: true

Size: 554 Bytes

Versions: 12

Compression:

Stored size: 554 Bytes

Contents

=begin
=druby_serv1.rb

a sample dRuby server

==USAGE

To start the server:

     % ruby druby_serv1.rb

This will print the address of the server such as
druby://[hostname]:[port] (For exaple druby://horihost:39391

Then run the client as (if the address is druby://horihost:39391):

     % ruby druby_cli1.rb druby://horihost:39391
=end

require "drb/drb"
require "numru/gphys"
include NumRu

file = NetCDF.open("../testdata/T.jan.nc")
gp = GPhys::NetCDF_IO.open(file,"T")

DRb.start_service(nil, gp)
puts 'URI: '+DRb.uri
puts '[return] to exit'
gets

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
gphys-1.5.0 sample/druby_serv1.rb
gphys-1.4.3.2 sample/druby_serv1.rb
gphys-1.4.3.1 sample/druby_serv1.rb
gphys-1.4.3 sample/druby_serv1.rb
gentooboontoo-gphys-1.3.1.1 sample/druby_serv1.rb
gentooboontoo-gphys-0.6.1.3 sample/druby_serv1.rb
gphys-1.2.2.1a sample/druby_serv1.rb
gphys-1.2.2.1 sample/druby_serv1.rb
gphys-1.2.2 sample/druby_serv1.rb
gphys-1.1.1b sample/druby_serv1.rb
gphys-1.1.1a sample/druby_serv1.rb
gphys-1.1.1 sample/druby_serv1.rb