diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-07 10:04:25 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-07 10:04:25 +0000 |
commit | a20863ff41b0493da0d16597b693e88b54731c03 (patch) | |
tree | 372d570d1bca168621914790fdb617deec97580a /lib/net/protocol.rb | |
parent | 4ed1344bd7a2527e54002e4ecb59833b99f30b43 (diff) | |
download | ruby-a20863ff41b0493da0d16597b693e88b54731c03.tar.gz |
aamine
* lib/net/smtp.rb: SMTP.new requires at least one arg.
* lib/net/pop.rb: POP.new requires at least one arg.
* lib/net/pop.rb: uses "raise *Error.new" instead of simple raise.
* lib/net/http.rb: HTTP.new requires at least one arg.
* lib/net/http.rb: changes implicit start algolithm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index ac2753ad79..600dc04b58 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -10,9 +10,8 @@ This program is free software. You can re-distribute and/or modify this program under the same terms as Ruby itself, Ruby Distribute License or GNU General Public License. -NOTE: You can get Japanese version of this document from -Ruby Documentation Project (RDP): -((<URL:http://www.ruby-lang.org/~rubikitch/RDP.cgi>)) +NOTE: You can find Japanese version of this document in +the doc/net directory of the standard ruby interpreter package. =end @@ -80,7 +79,7 @@ module Net def initialize( addr, port = nil ) - @address = addr || 'localhost' + @address = addr @port = port || type.port @command = nil @@ -213,9 +212,9 @@ module Net class Response - def initialize( ctype, cno, msg ) + def initialize( ctype, code, msg ) @code_type = ctype - @code = cno + @code = code @message = msg super() end |