summaryrefslogtreecommitdiff
path: root/lib/net/telnet.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-09 04:53:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-09 04:53:16 +0000
commit655e96fa59f62f7d31b2d9d470947f97aceb7b92 (patch)
tree6b6bb0a6ce9e46b326dbde9378c3791a54be1dd5 /lib/net/telnet.rb
parent2a34f89e354071d09c64a93bf3498dfa108f3e8c (diff)
2000-05-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/telnet.rb')
-rw-r--r--lib/net/telnet.rb18
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb
index 4acaaad..ca25941 100644
--- a/lib/net/telnet.rb
+++ b/lib/net/telnet.rb
@@ -5,7 +5,7 @@ $Date$
net/telnet.rb
-Version 1.30
+Version 1.31
Wakou Aoyama <wakou@fsinet.or.jp>
@@ -24,7 +24,7 @@ Wakou Aoyama <wakou@fsinet.or.jp>
# if ignore timeout then set "Timeout" to false.
"Waittime" => 0, # default: 0
"Proxy" => proxy # default: nil
- # proxy is Telnet or TCPsocket object
+ # proxy is Net::Telnet or IO object
})
Telnet object has socket class methods.
@@ -157,6 +157,12 @@ of cource, set sync=true or flush is necessary.
== HISTORY
+=== Version 1.31
+
+2000/05/02 21:48:39
+
+- Proxy option: can receive IO object
+
=== Version 1.30
2000/04/03 18:27:02
@@ -437,7 +443,7 @@ module Net
EOL = CR + LF
v = $-v
$-v = false
- VERSION = "1.30"
+ VERSION = "1.31"
RELEASE_DATE = "$Date$"
$-v = v
@@ -487,12 +493,12 @@ module Net
end
if @options.has_key?("Proxy")
- if @options["Proxy"].kind_of?(Telnet)
+ if @options["Proxy"].kind_of?(Net::Telnet)
@sock = @options["Proxy"].sock
- elsif @options["Proxy"].kind_of?(TCPsocket)
+ elsif @options["Proxy"].kind_of?(IO)
@sock = @options["Proxy"]
else
- raise "Error; Proxy is Telnet or TCPSocket object."
+ raise "Error; Proxy is Net::Telnet or IO object."
end
else
message = "Trying " + @options["Host"] + "...\n"