Sha256: 04a748231b87cc1c5e0f7545a4a6698044e7a263c980a00b0dd5d7320ec6e004

Contents?: true

Size: 398 Bytes

Versions: 3

Compression:

Stored size: 398 Bytes

Contents

$:.push(File.join(File.dirname(__FILE__), "..", "..", "lib"))
require "marilyn-rpc"
require "rubygems"
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", 8000, MarilynRPC::Server
  EM.start_server "localhost", 8008, MarilynRPC::Server, :secure => true
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
marilyn-rpc-0.0.4 examples/secure/server.rb
marilyn-rpc-0.0.3 examples/secure/server.rb
marilyn-rpc-0.0.2 examples/secure/server.rb