aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--lib/net/protocol.rb8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index f20f83317f..1b7302b259 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* ext/readline/readline.c: new methods
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