summaryrefslogtreecommitdiffstats
path: root/lib/net/protocol.rb
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
commitc6c6f2230e37844c1685f049affe67e05b42574a (patch)
tree2615ad77292cc81195bbaaf27b1cdfe23a90b91f /lib/net/protocol.rb
parent38b291b4dca09d96bf98a5405a01ad2115e2fe17 (diff)
downloadruby-c6c6f2230e37844c1685f049affe67e05b42574a.tar.gz
ruby-c6c6f2230e37844c1685f049affe67e05b42574a.tar.xz
ruby-c6c6f2230e37844c1685f049affe67e05b42574a.zip
aamine
* lib/net/protocol.rb: rename Net::Socket to Net::BufferedSocket git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/protocol.rb')
-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 5bc03ce7f..4f95434f9 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