Skip to content

Latest commit

 

History

History

ruby

Ice for Ruby

Getting started | Examples | Documentation | Building from source

The Ice framework provides everything you need to build networked applications, including RPC, pub/sub, server deployment, and more.

Ice for Ruby is the Ruby implementation of the Ice framework.

Sample Code

// Slice definitions (Hello.ice)

module Demo
{
    interface Hello
    {
        void sayHello();
    }
}
// Client application (client.rb)
require 'Ice'

Ice::loadSlice('Hello.ice')

Ice::initialize(ARGV) do |communicator|
    hello = Demo::HelloPrx.new(communicator, "hello:default -h localhost -p 10000")
    hello.sayHello()
end