Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Created November 26, 2009 06:27
Show Gist options
  • Select an option

  • Save toolmantim/243279 to your computer and use it in GitHub Desktop.

Select an option

Save toolmantim/243279 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'eventmachine'
class IChatTracker < EM::Protocols::LineAndTextProtocol
def receive_line(line)
puts line
end
end
EM.run do
EM.popen("mdns -B _presence._tcp", IChatTracker)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment