ibc/EventMachine-LE — Issue #2: Ruby 1.8.7 has no Addrinfo
Author: ibc
Created: 2012-02-26 22:36:50+00:00
State: open
Labels: Ruby

We have added some helper methods in `em_test_helper.rb` that depend on `Addrinfo` which is not present in Ruby 1.8.7.

So basically we need to replace the following lines with something that also works in Ruby 1.8.7:

socket = Addrinfo.udp("127.0.0.1", 1).connect # To get localhost IPv4 address
socket = Addrinfo.udp("1.2.3.4", 1).connect # To get public/private IPv4 address
socket = Addrinfo.udp("::1", 1).connect # To get localhost IPv6 address
socket = Addrinfo.udp("2001::1", 1).connect # To get public/private IPv6 address