Socket.getservbyname seems not to find http. 



$ ruby -ve 'require "socket"; puts Socket.getservbyname("http")'
ruby 1.6.3 (2001-03-19) [i686-cygwin]
-e:1:in `getservbyname': no such servce http/tcp (SocketError)
        from -e:1



It works at least with finger, telnet and ftp.

The same thing appears with Socket.getaddrinfo. Especially the
call that is used in the example from the pickage book (p. 483)
does not work on my system:



$ ruby -ve 'require "socket"; puts
Socket.getaddrinfo("www.microsoft.com","http
")'
ruby 1.6.3 (2001-03-19) [i686-cygwin]
-e:1:in `getaddrinfo': getaddrinfo: servname not supported for ai_socktype.
(Soc
ketError)
        from -e:1



I hope that I am missing something essential, so that this is not the
first bug report for ruby-1.6.3 ...


-
Tammo Freese
freese / acm.org