* 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
This commit is contained in:
aamine 2001-12-20 05:00:20 +00:00
parent a76e21e612
commit 5a4187f2c2
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Thu Dec 20 14:08:20 2001 Minero Aoki <aamine@loveruby.net>
* lib/net/protocol.rb: rename Net::Socket to Net::BufferedSocket
Wed Dec 19 16:58:29 2001 Shugo Maeda <shugo@ruby-lang.org> Wed Dec 19 16:58:29 2001 Shugo Maeda <shugo@ruby-lang.org>
* ext/readline/readline.c: new methods * ext/readline/readline.c: new methods

View File

@ -70,7 +70,7 @@ module Net
protocol_param :port, 'nil' protocol_param :port, 'nil'
protocol_param :command_type, 'nil' protocol_param :command_type, 'nil'
protocol_param :socket_type, '::Net::Socket' protocol_param :socket_type, '::Net::BufferedSocket'
def initialize( addr, port = nil ) def initialize( addr, port = nil )
@ -434,7 +434,7 @@ module Net
end end
class Socket class BufferedSocket
def initialize( addr, port, otime = nil, rtime = nil, dout = nil ) def initialize( addr, port, otime = nil, rtime = nil, dout = nil )
@addr = addr @addr = addr
@ -740,7 +740,7 @@ module Net
when File when File
while true do while true do
i = src.read( 2048 ) i = src.read(2048)
break unless i break unless i
i[0,0] = @wbuf i[0,0] = @wbuf
@wbuf = i @wbuf = i
@ -820,7 +820,7 @@ module Net
WriteAdapter = ::Net::WriteAdapter WriteAdapter = ::Net::WriteAdapter
ReadAdapter = ::Net::ReadAdapter ReadAdapter = ::Net::ReadAdapter
Command = ::Net::Command Command = ::Net::Command
Socket = ::Net::Socket Socket = ::Net::BufferedSocket
end end
end # module Net end # module Net