# Recvfrom broken on mswin32?

**URL:** <https://www.ruby-forum.com/t/recvfrom-broken-on-mswin32/87377>\
**Category:** Ruby\
**Created:** [March 2, 2007, 2:55am UTC](https://www.ruby-forum.com/t/recvfrom-broken-on-mswin32/87377 "2007-03-02T02:55:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 2, 2007, 2:55am UTC](https://www.ruby-forum.com/t/recvfrom-broken-on-mswin32/87377/1 "2007-03-02T02:55:20Z")

</div>

> ruby -v  
> ruby 1.8.5 (2006-12-25 patchlevel 12) [i386-mswin32]

I’m also running on windows vista, but I don’t know if this is an  
issue on the overall mswin32-x86 platform.

I’m getting an error when trying to recvfrom on a TCP Socket. The  
code looks as follows:

listen\_socket = TCPSocket.new(“127.0.0.1”,5000)  
(data,host) = listen\_socket.recvfrom( 1024 )

running this code (it’s in my unit test) yields:

SocketError: getnameinfo: ai\_family not supported.  
./lib/juggernaut.rb:42:in `recvfrom’

Any idea why this might be occurring? Is it due to something related  
to IPv6 support?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 3, 2007, 1:35am UTC](https://www.ruby-forum.com/t/recvfrom-broken-on-mswin32/87377/2 "2007-03-03T01:35:56Z")

</div>

Anybody out there? I don’t want this to get too buried.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 3, 2007, 1:41am UTC](https://www.ruby-forum.com/t/recvfrom-broken-on-mswin32/87377/3 "2007-03-03T01:41:56Z")

</div>

On 3/2/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Anybody out there? I don’t want this to get too buried.

22 hours is not enough time to warrant a bump.

If you suspect a Ruby bug, I suggest raising the issue on ruby-core (a  
lower traffic environment) or just filing a bug report on the  
Rubyforge project.

-austin

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 5, 2007, 8:25pm UTC](https://www.ruby-forum.com/t/recvfrom-broken-on-mswin32/87377/4 "2007-03-05T20:25:38Z")

</div>

Okay, where is the ruby-core discussion? I see a read-only forum on  
[ruby-form.org](http://ruby-form.org).

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [March 5, 2007, 8:58pm UTC](https://www.ruby-forum.com/t/recvfrom-broken-on-mswin32/87377/5 "2007-03-05T20:58:46Z")

</div>

On 3/5/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Okay, where is the ruby-core discussion? I see a read-only forum on  
> [ruby-form.org](http://ruby-form.org).

Try going to [ruby-lang.org](http://ruby-lang.org); you’ll be introduced to the mailing lists.

-austin
