This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of connecting to Epmd to get the port number | |
# of an Erlang node | |
require 'rubygems' | |
require 'eventmachine' | |
class EpmdConnection < EM::Connection | |
include EM::Deferrable | |
attr_accessor :nodename | |
def self.lookup_node(nodename) |