Sha256: 404edd4363a463995e5999169839d9ae9860b8fefb06f242f29998c4706b2103

Contents?: true

Size: 345 Bytes

Versions: 4

Compression:

Stored size: 345 Bytes

Contents

require "rubygems"
$:.push('../lib')
require "marilyn-rpc"
require "eventmachine"

class TestService < MarilynRPC::Service
  register :test
  
  def time
    Time.now
  end
  
  def add(a, b)
    a + b
  end
end


EM.run {
  EM.start_server "localhost", 8483, MarilynRPC::Server
  EM.start_unix_domain_server("tmp.socket", MarilynRPC::Server)
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
marilyn-rpc-0.0.4 benchmark/server.rb
marilyn-rpc-0.0.3 benchmark/server.rb
marilyn-rpc-0.0.2 benchmark/server.rb
marilyn-rpc-0.0.1 benchmark/server.rb