Ruby library and utilities for multicasting
Ruby
Switch branches/tags
Latest commit 6f8a83b Jun 24, 2010 @mwhuss v0.2.2
Permalink
Failed to load latest commit information.
bin Fixed Ruby shebang in bin files Jun 23, 2010
lib Added Multicast::Message object May 22, 2010
test Initial commit to multicast. May 20, 2010
.document Initial commit to multicast. May 20, 2010
.gitignore Ignore .rake_tasks Jun 23, 2010
LICENSE Initial commit to multicast. May 20, 2010
README.rdoc Updated README May 22, 2010
Rakefile
VERSION Version bump to 0.2.2 Jun 23, 2010
multicast.gemspec v0.2.2 Jun 23, 2010

README.rdoc

multicast

Ruby library and command line utils for multicasting

This project is very young so some things might not work.

Install

gem install multicast

Listening

Command Line

mclisten -g 224.0.1.33 -p 4567

Code

listener = Multicast::Listener.new(:group => "224.0.1.33", :port => 4567)
listener.listen do |message|
  puts "---> [#{message.hostname} / #{message.ip}:#{message.port} (#{message.message.size} bytes)] #{message.message}"
end

Sending

Command Line

mcsend -g 224.0.1.33 -p 4567 -m "Multicasting like a champ"

Code

sender = Multicast::Sender.new(:group => "224.0.1.33", :port => 4567)
sender.send("Multicasting like a champ")

Contact

Twtter Blog TwoGuys

Copyright

Copyright © 2010 Marshall Huss. See LICENSE for details.