[#2840] Changing Resolv::DNS — Daniel Hobe <daniel@...>
I put out a RCR a while ago (176) that subclassed the Resolv::DNS class to
5 messages
2004/05/01
[#2853] cgi.rb: option to omit HTTP header emission — Jos Backus <jos@...>
I'm trying to use cgi.rb to write HTML-only output. This patch adds a
5 messages
2004/05/06
[#2867] ruby/dl — Jeff Mitchell <quixoticsycophant@...>
# dltest.rb
7 messages
2004/05/12
[#2878] Bug in open-uri under win32 (?) — Mauricio Fern疣dez <batsman.geo@...>
4 messages
2004/05/16
[#2894] RI for distribution — why the lucky stiff <ruby-core@...>
Hi, everyone.
6 messages
2004/05/18
[#2901] test/yaml/test_yaml.rb — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>
Hello.
2 messages
2004/05/19
[#2913] [yaml] YAML.load([1,2,3].to_yaml.to_yaml) — Jeff Mitchell <quixoticsycophant@...>
A bit contrived,
8 messages
2004/05/20
[#2926] Re: [bug] [yaml] YAML.load([1,2,3].to_yaml.to_yaml)
— "daz" <dooby@...10.karoo.co.uk>
2004/05/23
[#2927] Re: [bug] [yaml] YAML.load([1,2,3].to_yaml.to_yaml)
— ts <decoux@...>
2004/05/23
>>>>> "d" == daz <dooby@d10.karoo.co.uk> writes:
[#2928] Syck CVS (was Re: [bug] [yaml] YAML.load([1,2,3].to_yaml.to_yaml))
— why the lucky stiff <ruby-core@...>
2004/05/23
ts wrote:
[#2929] Re: Syck CVS (was Re: [bug] [yaml] YAML.load([1,2,3].to_yaml.to_yaml))
— ts <decoux@...>
2004/05/23
>>>>> "w" == why the lucky stiff <ruby-core@whytheluckystiff.net> writes:
[#2918] fixed SIG_SEGV in check_stack() in eval.c — b g <bg_rubyposter_123456@...>
I was getting a crash at 'JUMP_TAG(state);' in
6 messages
2004/05/22
[#2938] -Wstrict-prototypes for extensions — Jeff Mitchell <quixoticsycophant@...>
6 messages
2004/05/25
Re: [Help] Problem with SOCKET API on OpenVMS
From:
BH - Brad Coish <BCoish@...>
Date:
2004-05-19 13:34:37 UTC
List:
ruby-core #2902
Matz:
Thanks for the speedy reply!
<excerpt from "Programming Ruby.chm">
gethostbyname
Returns a four-element array containing the canonical host
name, a subarray of host aliases, the address family, and
the address portion of the sockaddr structure.
</excerpt>
OpenVMS:
A:...RUBY181.RUBY_181> ruby -r socket
a = Socket.gethostbyname("216.87.136.211")
res = Socket.gethostbyaddr(a[3], a[2])
res.join(', ')
p res
Exit
-:2:in `gethostbyaddr': host not found (SocketError)
from -:2
Windows:
C:\Documents and Settings\bh>ruby -r socket
a = Socket.gethostbyname("216.87.136.211")
res = Socket.gethostbyaddr(a[3], a[2])
res.join(', ')
p res
^Z
["pragdave211.august.net", [], 2, "\330W\210\323"]
NOTE: The example was taken directly from "Programming Ruby.chm"
(with the exception of the "p res" line)
Why the difference? Shouldn't the value returned from gethostbyname
be usable by gethostbyaddr as in the example from windows.
NOTE: Ruby for Windows test is 1.6.8 and ruby on OpenVMS is 1.8.1
Regards,
Brad
-----Original Message-----
From: Yukihiro Matsumoto [mailto:matz@ruby-lang.org]
Sent: Wednesday, May 19, 2004 12:13 AM
To: ruby-core@ruby-lang.org
Subject: Re: [Help] Problem with SOCKET API on OpenVMS
Hi,
In message "[Help] Problem with SOCKET API on OpenVMS"
on 04/05/19, BH - Brad Coish <BCoish@Dymaxion.com> writes:
|Problem:
| TCP/IP socket routine(s) not functioning properly on OpenVMS.
|
|Specifics:
| The Socket.gethostbyname routine does not return the proper
| values. It's supposed to return an array filled with the
| canonical host name, sub-list of aliases, the connection family
| and the address portion of the host sockaddr.
It's not OpenVMS specific problem. Socket.gethostbyname returns
packed struct sockaddr, not address portion.
matz.