aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-22 23:52:11 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-07-22 23:52:11 +0000
commit26b9cd878a91a5ab495762fc168b4bb7b74c4d62 (patch)
tree7593d326a9885e7b1c19faae5373b314b841354d
parent2f8bc7be98bdfe9c904f57f53a297fcd445cc77f (diff)
downloadruby-26b9cd878a91a5ab495762fc168b4bb7b74c4d62.tar.gz
* lib/net/imap.rb (disconnected?): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--lib/net/imap.rb5
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f22e3c69b0..cf453f58a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Jul 23 08:52:22 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (disconnected?): new method.
+
Mon Jul 19 00:53:46 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
* lib/webrick/httpservlet/cgihandler.rb
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 7e8d574fbe..705d54b0ce 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -289,6 +289,11 @@ module Net
@sock.close
end
+ # Returns true if disconnected from the server.
+ def disconnected?
+ return @sock.closed?
+ end
+
# Sends a CAPABILITY command, and returns an array of
# capabilities that the server supports. Each capability
# is a string. See [IMAP] for a list of possible