From 5a4187f2c28b1025d47a85b7728509a1b907eda0 Mon Sep 17 00:00:00 2001 From: aamine Date: Thu, 20 Dec 2001 05:00:20 +0000 Subject: aamine * lib/net/protocol.rb: rename Net::Socket to Net::BufferedSocket git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/protocol.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/net') diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb index 5bc03ce7f9..4f95434f99 100644 --- a/lib/net/protocol.rb +++ b/lib/net/protocol.rb @@ -70,7 +70,7 @@ module Net protocol_param :port, 'nil' protocol_param :command_type, 'nil' - protocol_param :socket_type, '::Net::Socket' + protocol_param :socket_type, '::Net::BufferedSocket' def initialize( addr, port = nil ) @@ -434,7 +434,7 @@ module Net end - class Socket + class BufferedSocket def initialize( addr, port, otime = nil, rtime = nil, dout = nil ) @addr = addr @@ -740,7 +740,7 @@ module Net when File while true do - i = src.read( 2048 ) + i = src.read(2048) break unless i i[0,0] = @wbuf @wbuf = i @@ -820,7 +820,7 @@ module Net WriteAdapter = ::Net::WriteAdapter ReadAdapter = ::Net::ReadAdapter Command = ::Net::Command - Socket = ::Net::Socket + Socket = ::Net::BufferedSocket end end # module Net -- cgit v1.2.3