Skip to content
Ruby library and utilities for multicasting
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
test
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION
multicast.gemspec

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.

Something went wrong with that request. Please try again.