diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-21 12:10:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-21 12:10:53 +0000 |
commit | 66390013a1eb01c7159412e673965093f05f8161 (patch) | |
tree | 6882c85b826bcaacd58c77f133a6ed0a07d87e17 /lib/resolv-replace.rb | |
parent | ed2dd5e3f497448356205e5f965d55850e32bae6 (diff) |
* lib/resolv-replace.rb: specify super class for rdoc.
* lib/ipaddr.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/resolv-replace.rb')
-rw-r--r-- | lib/resolv-replace.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/resolv-replace.rb b/lib/resolv-replace.rb index 63d58cea27..091b961f4f 100644 --- a/lib/resolv-replace.rb +++ b/lib/resolv-replace.rb @@ -12,7 +12,7 @@ class << IPSocket end end -class TCPSocket +class TCPSocket < IPSocket alias original_resolv_initialize initialize def initialize(host, serv, *rest) rest[0] = IPSocket.getaddress(rest[0]) unless rest.empty? @@ -20,7 +20,7 @@ class TCPSocket end end -class UDPSocket +class UDPSocket < IPSocket alias original_resolv_bind bind def bind(host, port) host = IPSocket.getaddress(host) if host != "" @@ -55,7 +55,7 @@ class UDPSocket end end -class SOCKSSocket +class SOCKSSocket < TCPSocket alias original_resolv_initialize initialize def initialize(host, serv) original_resolv_initialize(IPSocket.getaddress(host), port) |