[#6728] Ruby 1.3.3-990507 — matz <matz@...>

Ruby 1.3.3-990507 is out, check out:

34 messages 1999/05/07
[#6731] Re: Ruby 1.3.3-990507 — Katsuyuki Komatsu <komatsu@...> 1999/05/07

小松です。

[#6779] Re: private inner class (Re: Re: class def in class def) — Koji Oda <oda@...1.qnes.nec.co.jp>

小田@QNES です。

13 messages 1999/05/13

[#6789] Ruby 1.3.3-990513 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.3-990513 is out, check out:

59 messages 1999/05/13
[#6811] Re: Ruby 1.3.3-990513 — Koji Oda <oda@...1.qnes.nec.co.jp> 1999/05/14

小田@QNES です。

[#6814] Re: Ruby 1.3.3-990513 — matz@... (Yukihiro Matsumoto) 1999/05/15

まつもと ゆきひろです

[#6821] Re: Ruby 1.3.3-990513 — Koji Oda <oda@...1.qnes.nec.co.jp> 1999/05/16

小田@QNES です。

[#6790] Re: Ruby 1.3.3-990513 — Katsuyuki Komatsu <komatsu@...> 1999/05/13

小松です。

[#6891] Ruby 1.3.3-990518 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.3-990518 is out, check out:

19 messages 1999/05/18

[#6919] ext/socket/getaddrinfo.c tiny fix — Jun-ichiro itojun Hagino <itojun@...>

ext/socket/getaddrinfo.cに以下のpatchをおねがいします。

22 messages 1999/05/20
[#6921] Re: ext/socket/getaddrinfo.c tiny fix — Jun-ichiro itojun Hagino <itojun@...> 1999/05/20

[#7034] Ruby 1.3.4-990531 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.4-990531 is out, check out:

25 messages 1999/05/31

[ruby-dev:6744] Socket.getaddrinfo

From: Katsuyuki Komatsu <komatsu@...>
Date: 1999-05-09 05:00:48 UTC
List: ruby-dev #6744
小松です。

ruby-1.3.3-990507で、IPv6のサンプルのdualstack-httpd.rbが、
    res = Socket.getaddrinfo(nil, port, nil, Socket::SOCK_STREAM, ...)
の所で"ai_socktype not supported."で失敗します。
ext/socket/socket.cのsock_s_getaddrinfo()でFIX2INT()が必要だと
思います。

diff -r -u ruby-1.3.3-990507.orig/ext/socket/socket.c ruby-1.3.3-990507/ext/socket/socket.c
--- ruby-1.3.3-990507.orig/ext/socket/socket.c	Fri May  7 17:24:36 1999
+++ ruby-1.3.3-990507/ext/socket/socket.c	Sun May  9 13:04:01 1999
@@ -1672,13 +1672,13 @@
 	hints.ai_family = PF_UNSPEC;
     }
     if (!NIL_P(socktype) && rb_obj_is_kind_of(socktype, rb_cInteger)) {
-	hints.ai_socktype = socktype;
+	hints.ai_socktype = FIX2INT(socktype);
     }
     if (!NIL_P(protocol) && rb_obj_is_kind_of(protocol, rb_cInteger)) {
-	hints.ai_protocol = protocol;
+	hints.ai_protocol = FIX2INT(protocol);
     }
     if (!NIL_P(flags) && rb_obj_is_kind_of(flags, rb_cInteger)) {
-	hints.ai_flags = flags;
+	hints.ai_flags = FIX2INT(flags);
     }
     error = getaddrinfo(hptr, pptr, &hints, &res);
     if (error) {

--
小松克行 (株)サリオンシステムズリサーチ ソフトウェア開発部
Katsuyuki Komatsu <komatsu@sarion.co.jp>

In This Thread

Prev Next