summaryrefslogtreecommitdiff
path: root/lib/net/protocol.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net/protocol.rb')
-rw-r--r--lib/net/protocol.rb41
1 files changed, 2 insertions, 39 deletions
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index e070d29d994..82cc82fa240 100644
--- a/lib/net/protocol.rb
+++ b/lib/net/protocol.rb
@@ -1,6 +1,6 @@
=begin
-= net/protocol.rb version 1.1.30
+= net/protocol.rb version 1.1.31
written by Minero Aoki <aamine@dp.u-netsurf.ne.jp>
@@ -31,10 +31,6 @@ Object
This method creates a new Protocol object and opens a session.
equals to Net::Protocol.new( address, port ).start( *protoargs )
-: Proxy( address, port )
- This method creates a proxy class of its protocol.
- Arguments are address/port of proxy host.
-
=== Methods
: address
@@ -69,7 +65,7 @@ module Net
class Protocol
- Version = '1.1.30'
+ Version = '1.1.31'
class << self
@@ -85,38 +81,6 @@ module Net
end
end
- def Proxy( p_addr, p_port = nil )
- p_port ||= self.port
- klass = Class.new( self )
- klass.module_eval %-
-
- def initialize( addr, port )
- @proxyaddr = '#{p_addr}'
- @proxyport = '#{p_port}'
- super @proxyaddr, @proxyport
- @address = addr
- @port = port
- end
-
- def connect( addr = nil, port = nil )
- super @proxyaddr, @proxyport
- end
- private :connect
-
- attr_reader :proxyaddr, :proxyport
- -
- def klass.proxy?
- true
- end
-
- klass
- end
-
- def proxy?
- false
- end
-
-
private
def protocol_param( name, val )
@@ -225,7 +189,6 @@ module Net
-
class Response
def initialize( ctype, cno, msg )