diff options
Diffstat (limited to 'sample/dualstack-fetch.rb')
| -rw-r--r-- | sample/dualstack-fetch.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sample/dualstack-fetch.rb b/sample/dualstack-fetch.rb index ab8d0914f2..18d33cc45a 100644 --- a/sample/dualstack-fetch.rb +++ b/sample/dualstack-fetch.rb @@ -1,7 +1,7 @@ # simple webpage fetcher # The code demonstrates how a multi-protocol client should be written. -# TCPsocket is using getaddrinfo() internally, so there should be no problem. +# TCPSocket is using getaddrinfo() internally, so there should be no problem. require "socket" @@ -36,9 +36,9 @@ end #STDERR.print "path=<#{path}>\n" STDERR.print "conntecting to #{host} port #{port}\n" -c = TCPsocket.new(host, port) +c = TCPSocket.new(host, port) dest = Socket.getnameinfo(c.getpeername, - Socket::NI_NUMERICHOST|Socket::NI_NUMERICSERV) + Socket::NI_NUMERICHOST|Socket::NI_NUMERICSERV) STDERR.print "conntected to #{dest[0]} port #{dest[1]}\n" c.print "GET #{path} HTTP/1.0\n" c.print "Host: #{host}\n" |
