diff options
Diffstat (limited to 'sample/dualstack-fetch.rb')
-rw-r--r-- | sample/dualstack-fetch.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/dualstack-fetch.rb b/sample/dualstack-fetch.rb index ab8d0914f2..1897a3d8e9 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,7 +36,7 @@ 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) STDERR.print "conntected to #{dest[0]} port #{dest[1]}\n" |