[#13273] Ruby anywhere — "NAKAMURA, Hiroshi" <nakahiro@...>
なひです.rubyistモード.
なひです.
なひです.まったく何書いてんだか... > 自分 ^^;
なひです.もちろん「Dummy」なのは私です.^^;
前田です。
松尾です。
だんのです。
原です。
なひです.
青山です。
なひです.
青山です。
松尾です。
前田です。
なひです.
前田です。
なひです.
稲葉です。
なひです.眠い...
> > > 「call-by-referenceで」もちょっと言葉が違うような。
原です。
前田です。
原です。
だんのです。
青山です。
原です。
前田です。
前田です。
まつもと ゆきひろです
原です。
青山です。
Shugo Maeda <shugo@netlab.co.jp> writes:
前田です。
原です。
原です。
ごとけんです
原です。
青山です。
原です。
青山です。
青山です。
原です。
ごとけんです
原です。
ごとけんです
ごとけんです
まつもと ゆきひろです
原です。
ごとけんです
原です。
In message "[ruby-list:13884] Re: What is Object in Ruby? (Re: Ruby and LISP)"
ごとけんです
青山です。
原です。
ごとけんです
前田です。
ごとけんです
前田です。
ごとけんです
ごとけんです
まつもと ゆきひろです
まつもと ゆきひろです
Shugo Maeda <shugo@netlab.co.jp> writes:
前田です。
Shugo Maeda <shugo@netlab.co.jp> writes:
原です。
前田です。
[#13274] Ruby Home Page — WATANABE Tetsuya <tetsu@...>
◎要求推察機能搭載
[#13288] big ruby program — kikutani@...
今までrubyで書かれた、もっとも大きなプログラム
[#13383] — Inaba Hiroto <inaba@...>
稲葉です.
In message <9904070229.AA11857@tux0017.sdd.tokyo-sc.toshiba.co.jp>
稲葉です。これも出しなおしです.
In message <9904080032.AA17943@tux0017.sdd.tokyo-sc.toshiba.co.jp>
稲葉です。
青山です。
[#13427] inline callback — Masatoshi SEKI <m_seki@...>
[#13436] Re: Ruby and LISP ( was Re: Ruby anywhere ) — 助田 雅紀 <masaki.suketa@...>
助田です.
[#13445] Re: constant/immutable(Re: Ruby and LISP) — 助田 雅紀 <masaki.suketa@...>
助田です.全然 Ruby と関係ないですが.
[#13502] Re: Ruby and LISP ( was Re: Ruby anywhere ) — "豊福" <toyofuku@...>
豊福@パパイヤです。
原です。
原です。
[#13506] telnet.rb STDOUT — kikutani@...
昨日書いた、proxy経由でpopするやつですが、
青山です。
青山です。
On Fri, 9 Apr 1999 22:08:09 +0900,
青山です。
青山です。
[#13525] Re: iterator for Dummies( was Re: Ruby anyw here ) — 助田 雅紀 <masaki.suketa@...>
助田です.ちょっと長いです.
[#13541] iterator <-> cursor (Re: iterator for Dummies) — Inaba Hiroto <inaba@...>
稲葉です.
[#13582] Dir.foreach — greentea@...2.so-net.ne.jp (Tomoyuki Kosimizu)
こんにちは、越水です。
[#13588] /.*\n$/ — kikutani@...
if "hoge\n" =~ /.*\n$/
[#13607] Re: iterator for Dummies( was Re: Ruby anyw here ) — 助田 雅紀 <masaki.suketa@...>
助田です.
前田です。
[#13644] bbs — kikutani@...
rubyで書かれたWebの掲示板てありましたっけ?
初めて投稿します。多田@S.P.C.です。
On Tue, 13 Apr 1999 11:16:47 +0900,
松尾です。
多田@S.P.C.です。
bbsのスレッドがこんなに盛り上るとは思わなかった...
On Tue, 13 Apr 1999 13:47:42 +0900,
こんばんは。鈴木教郎です。
[#13646] Re: internal/external iterator (was Re: ite rator for Dummies) — 助田 雅紀 <masaki.suketa@...>
助田です.
[#13673] ruby 1.2.5 is released — matz@... (Yukihiro Matsumoto)
まつもと ゆきひろです
[#13680] FW: ruby-1.2.5 mkconfig.rb — "NAKAMURA, Hiroshi" <nakahiro@...>
なひです.
まつもと ゆきひろです
土岐です。
まつもと ゆきひろです
わたなべです.
まつもと ゆきひろです
小松です。
まつもと ゆきひろです
[#13688] What is callcc? (Re: iterator <-> cursor) — toyofuku@...
豊福@パパイヤです。
[#13697] ruby で MIDI — Keisuke Minami <keisuke@...>
三並です。
[#13710] private singleton method — thitoshi@... (TAKAHASHI Hitoshi)
[#13712] IPv6-ready ruby (Forward: [ruby-talk:00274]) — gotoken@... (GOTO Kentaro)
ごとけんです
まつもと ゆきひろです
ももちゃんです.
まつもと ゆきひろです
ももいちゃんです.
まつもと ゆきひろです
[#13720] Re: What is callcc? (Re: iterator <-> cursor) — toyofuku@...
豊福@パパイヤです。
まつもと ゆきひろです
[#13741] Re: iterator — "豊福" <toyofuku@...>
豊福@パパイヤです。
[#13762] accepting multiple TCPserver — Jun-ichiro itojun Hagino <itojun@...>
[#13810] style — Kikutani Makoto <kikutani@...>
仕事がいまいちやる気にならんので(毎度のことだが)雑談です。
[#13811] ping.rb で false — Yoshiki Wada <wada@...>
和田と言います。
[#13865] cross-reference duplication — Ryunosuke Ohshima <ryu@...>
はじめまして、大島@北陸先端科学技術大学院大学と申します。
[#13867] Re: What is Object in Ruby? (Re: Ruby and LISP) — toyofuku@...
豊福@パパイヤです。
青山です。
まつもと ゆきひろです
青山です。
まつもと ゆきひろです
[#13894] FreeBSD port kit for some extention modules and applications — Yasuhiro Fukuma <yasuf@...>
福間@福岡 です。
[#13903] timer — hisanori@...
松尾です。
まつもと ゆきひろです
松尾です.
まつもと ゆきひろです
松尾です.
まつもと ゆきひろです
matz@netlab.co.jp (Yukihiro Matsumoto) writes:
In message <371F9FC120.AA42.anakamur@exa.i-tech.co.jp>
In message <371FE23633A.D92F.anakamur@exa.i-tech.co.jp>
[#13927] Re: Thread GC (Re: Re: timer) — Inaba Hiroto <inaba@...>
稲葉です.
[#13930] mod_ruby 0.1.0 — Shugo Maeda <shugo@...>
前田です。
[#13948] Re: What is Object in Ruby? (Re: Ruby and LISP) — toyofuku@...
豊福@パパイヤです。
青山です。
[#13951] Message of Today in 1999/04/20. — "NAKAMURA, Hiroshi" <nakahiro@...>
なひです.
[#13967] Proc.new — akendo@...3.rim.or.jp
遠藤です。Ruby/Tkで楽しく遊ばせていただいています。
まつもと ゆきひろです
遠藤です。問題の記述が悪くて申し訳ありません。
[#14014] Re: What is callcc? (Re: iterator <-> cursor) — toyofuku@...
豊福@パパイヤです。
[#14037] TMail について — 民斗 <tommy@...>
民斗です。
あおきです。報告ありがとうございます。
民斗です。
わたなべです.
あおきです。
わたなべです.
In ruby-list, you wrote:
まつもと ゆきひろです
五樹島です。お世話になっております。
こんにちは。鈴木教郎です。
原です。
あおきです。
[#14038] ttyname(3) — gotoken@... (GOTO Kentaro)
ごとけんです
[#14054] 今日の一言 — WATANABE Tetsuya <tetsu@...>
渡辺哲也です。
[#14070] — Kazunori Akaishi <akaishi@...>
akaishi です。
[ruby-list:13712] IPv6-ready ruby (Forward: [ruby-talk:00274])
ごとけんです
ruby-talk に流れてきたのですが、広く知られた方がよいと思うので
こちらに転載します。
# 僕の手元には IPv6 環境がない(^^;;
X-cmail-status: Active
Received: from hoyogw.netlab.co.jp (daemon@hoyogw.netlab.co.jp [202.218.249.220])
by math.sci.hokudai.ac.jp (8.8.8/3.6W01/06/98) with ESMTP id DAA03089
for <gotoken@math.sci.hokudai.ac.jp>; Wed, 14 Apr 1999 03:45:05 +0900 (JST)
Received: from hoyogw.netlab.co.jp (matz@localhost [127.0.0.1])
by hoyogw.netlab.co.jp (8.9.2+3.1W/3.7W/1.3) with SMTP id DAA29567;
Wed, 14 Apr 1999 03:44:44 +0900 (JST)
Date: Wed, 14 Apr 1999 03:39:11 +0900
From: Jun-ichiro itojun Hagino <itojun@itojun.org>
Reply-To: ruby-talk@netlab.co.jp
Subject: [ruby-talk:00274] IPv6-ready ruby
Sender: itojun@itojun.org
To: ruby-talk@netlab.co.jp (ruby-talk ML)
Message-Id: <24965.924028751@cardamom.itojun.org>
X-ML-Name: ruby-talk
X-Mail-Count: 00274
X-MLServer: fml [fml 2.2]; post only (only members can post)
X-ML-Info: If you have a question, send a mail with the body
"# help" (without quotes) to the address ruby-talk-ctl@netlab.co.jp;
help=<mailto:ruby-talk-ctl@netlab.co.jp?body=help>
X-Mailer: comp (MHng project) version 1998/02/23 14:27:23, by Jun-ichiro Itoh
X-Template-Reply-To: itojun@itojun.org
X-Template-Return-Receipt-To: itojun@itojun.org
X-PGP-Fingerprint: F8 24 B4 2C 8C 98 57 FD 90 5F B4 60 79 54 16 E2
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Precedence: bulk
Lines: 131
X-UIDL: 94499edb227330e19cb281d5b34c235f
Status: U
We KAME team (www.kame.net) are working on IPv6-ready ruby.
This is currently based on ruby 1.2.5 (stable branch).
Snapshots are available at ftp://ftp.kame.net/pub/kame/misc/.
The patch mainly modifies Socket and its child classes, configure
script and ftplib.rb.
I would like to have you comments on Socket class API issues. I have
been trying to make it backward-compatible for existing applications,
but I may have broke somewhere.
We hope to supply patch to 1.3.x and hoping that to be merged into
1.3.x code tree. (IPv6 support in ruby base system would be cool...).
itojun@kame.net
--- current README.v6
IPv6-ready ruby 1.2.x
KAME Project
$Id: README.v6,v 1.10 1999/04/13 18:30:16 itojun Exp $
This patchkit enables ruby 1.2.x to perform AF_INET6 socket operations.
The only affected module is ext/socket/socket.c.
ext/socket/socket.c
Basically you can write IPv6 address where IPv4 address fits.
The code relies upon getaddrinfo().
UDPsocket
UDPsocket.open() and UDPsocket.new() takes optional argument,
address family, like:
u = UDPsocket.open(Socket.AF_INET6)
UDPsocket.open() will create a socket by socket(2) system call.
Future UDPsocket operations will perform getaddrinfo(3) to obtain
the address, then try all the addresses returned until successful
result comes from the kernel. For example,
u = UDPsocket.open(Socket.AF_INET6)
u.sendto("foo", 0, "localhost", "echo")
will perform udp packet output toward ::1 (if getaddrinfo(3) returns
127.0.0.1 and ::1, UDPsocket.sendto() will loop through the addresses).
TCPserver
TCPserver module treats integer values (0, or 0x0a000001) as
IPv4 address. Also, if host part is omitted, it will be treated
as 0. Therefore, the following statement will listen to IPv4 TCP
socket (the three statements have the same effect):
t = TCPserver.open($port) # omit host part
t = TCPserver.open(0, $port) # is equal to 0
t = TCPserver.open("0.0.0.0", $port) # is equal to 0.0.0.0
If you would like to explicitly listen to IPv6 socket, try:
t = TCPserver.open("::", $port) # force IPv6
The behavior should be fixed soon. IMHO, when address is not specified
TCPserver should listen to all the addresses returned by getaddrinfo(3).
Socket.getaddrinfo(host, port, family, socktype, protocol, flags)
Perform getaddrinfo(3). host and port are mandatory, the rest (family
to flags) are optional.
host: nil (NULL), String (as hostname)
port: nil (NULL), Integer (as port number), String (as port name)
family: nil or Integer (passed as hints.ai_family)
socktype: nil or Integer (passed as hints.ai_socktype)
protocol: nil or Integer (passed as hints.ai_protocol)
flags: nil or Integer (passed as hints.ai_flags)
The value returned is array of the following array:
elem[0]: address family as string, like "AF_INET6"
elem[1]: port number (numeric)
elem[2]: numeric hostname
elem[3]: numeric hostname, or canonical hostname if exist
elem[4]: numeric res->ai_family
elem[5]: numeric res->ai_socktype
elem[6]: numeric res->ai_protocol
Format of elem[0 .. 3] is the same as the return value of
IPsocket.addr().
Examples:
# for wildcard sockaddrs for listening socket
x = Socket.getaddrinfo(nil, 80, nil, nil, nil, Socket::AI_PASSIVE)
# for specific sockaddrs for outgoing socket
y = Socket.getaddrinfo("www.yahoo.com", 80, nil,
Socket::SOCK_STREAM)
# no port information, just getting addresses
z = Socket.getaddrinfo("localhost", nil)
constants
The following symbols are defined, and can be accessed as
Socket::AF_INET6 or likewise: AF_INET6, PF_INET6, PF_UNSPEC,
AI_xxx, NI_xxx (see RFC2553)
lib/ftplib.rb
Supports ftp over IPv6, both in passive and active mode. Based on
RFC2428 EPSV/EPRT.
configure
Configure has extra option, --enable-ipv6 and --disable-ipv6.
The option controls IPv6 support feature.
restrictions
- On KAME IPv6 protocol stack, ext/socket/socket.c cannot be
dynamically loaded, due to external reference to static link
library (libinet6.a). This should be fixed soon.
- The patched tree will compile only on UNIX variants.
Most of BeOS/Windows compatibility code is removed from
ext/socket/socet.c.
todo
- Supply Socket.getaddrinfo() and Socket.getaddrinfo().
- Clarify behavior of wildcard bind.
If you use IPv6 features, it is assumed that you have working(*)
getaddrinfo() and getnameinfo() library functions. If you compile this
on IPv4-only machine, missing/getaddrinfo.c is used as last-resort version
(which support IPv4 only) of getaddrinfo().
For more complete implementation you might want to check BIND 8.2.
(*) NOTE: we have noticed that some of IPv6 stack is shipped with broken
getaddrinfo(). In such cases, you should get working library. Contact the
vendor for details.
When compiling this kit onto IPv6, you may need to specify some additional
library paths or cpp defs. (like -linet6 or -DINET6)
--enable-ipv6 will give you some warning, if the IPv6 stack is unknown
to the "configure" script. Currently, the following IPv6 stacks
are supported:
- KAME IPv6 stack, http://www.kame.net/
Author contacts
http://www.kame.net/
mailto:core@kame.net