diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-05 16:12:05 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-05 16:12:05 +0000 |
commit | 5ae5596491c35e826678f88dfc38caf82523e601 (patch) | |
tree | ef9c7ef6f3c78557708405a037301eb33b109411 /lib/net/protocol.rb | |
parent | e6c23c67e9ef9b7b0607d0272bf10c99bb0c46a8 (diff) |
* lib/net/http.rb: update document.
* lib/net/pop.rb: ditto.
* lib/net/protocol.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r-- | lib/net/protocol.rb | 51 |
1 files changed, 23 insertions, 28 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index d33e93b266..eb1284735f 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -1,30 +1,29 @@ -=begin - -= net/protocol.rb - -Copyright (c) 1999-2003 Yukihiro Matsumoto -Copyright (c) 1999-2003 Minero Aoki - -written and maintained by Minero Aoki <aamine@loveruby.net> - -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. - -$Id$ - -WARNING: This file is going to remove. -Do not rely on the implementation written in this file. - -=end +# +# = net/protocol.rb +# +#-- +# Copyright (c) 1999-2003 Yukihiro Matsumoto +# Copyright (c) 1999-2003 Minero Aoki +# +# written and maintained by Minero Aoki <aamine@loveruby.net> +# +# 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. +# +# $Id$ +#++ +# +# WARNING: This file is going to remove. +# Do not rely on the implementation written in this file. +# require 'socket' require 'timeout' - module Net - class Protocol + class Protocol #:nodoc: internal use only private def Protocol.protocol_param( name, val ) module_eval(<<-End, __FILE__, __LINE__ + 1) @@ -46,7 +45,7 @@ module Net ProtocRetryError = ProtoRetriableError - class InternetMessageIO + class InternetMessageIO #:nodoc: internal use only class << self alias open new @@ -415,10 +414,7 @@ module Net end - # - # The reader adapter class for internal use only. - # - class ReadAdapter + class ReadAdapter #:nodoc: internal use only def initialize( block ) @block = block @@ -446,8 +442,7 @@ module Net end - # For backward compatibility - module NetPrivate + module NetPrivate #:nodoc: obsolete Socket = ::Net::InternetMessageIO end |