Skip to content

Instantly share code, notes, and snippets.

@kzk
Created May 3, 2010 13:27
Show Gist options
  • Save kzk/388085 to your computer and use it in GitHub Desktop.
Save kzk/388085 to your computer and use it in GitHub Desktop.
gem 'msgpack'
gem 'msgpack-rpc'
require 'msgpack'
require 'msgpack/rpc'
class CDBServer
def hello
puts "hello"
return 1
end
end
svr = MessagePack::RPC::Server.new
svr.listen("0.0.0.0", 1985, CDBServer.new)
svr.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment