summaryrefslogtreecommitdiff
path: root/lib/net
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-20 05:00:20 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-20 05:00:20 +0000
commit5a4187f2c28b1025d47a85b7728509a1b907eda0 (patch)
tree2615ad77292cc81195bbaaf27b1cdfe23a90b91f /lib/net
parenta76e21e612719201799384fff39dfb160b03bc99 (diff)
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
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/protocol.rb8
1 files changed, 4 insertions, 4 deletions
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