portable ruby bindings for the spread toolkit, version 3.17.x -- built with ffi.
sudo gem install spread-client -s http://gemcutter.org
then
require 'rubygems'
require 'spread_client'
c = SpreadClient::connect('bob')
c.join('chat')
c.multicast('chat', 'hello folks!')
c.leave('chat')
c.disconnect
-
install the spread toolkit:
$ sudo port install spread
or
$ sudo apt-get install spread
or see http://www.spread.org for instructions on how to install from source.
-
create a simple
spread.conf
:# one spread daemon running on port 4803 on localhost Spread_Segment 127.0.0.255:4803 { localhost 127.0.0.1 }
-
start the spread daemon:
$ spread -n localhost -c spread.conf
Copyright (c) 2009 Tim Lossen. See LICENSE for details.