Project

onedrb

0.0
Low commit activity in last 3 years
No release in over a year
Makes it convenient to make an object remotely accessible.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.3, >= 0.3.0
~> 0.4, >= 0.4.0
 Project Readme

Introducing the onedrb gem

Server usage

require 'onedrb'

class Fun
  def go(s, age: '22')
    "hello %s; age: %s" % [s, age]
  end
end

fun = OneDrb::Server.new host: '127.0.0.1', port: '57844', obj: Fun.new
fun.start

Client usage

require 'onedrb'

fun = OneDrb::Client.new host: '127.0.0.1', port: '57844'
fun.go 'James', age: '34'
#=> "hello James; age: 34"

Resources

drb onedrb gem remote connection object