Project

multicast

0.0
No commit activity in last 3 years
No release in over 3 years
Multicasting in Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0.1.4
 Project Readme

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 © 2010 Marshall Huss. See LICENSE for details.