Stop using deprecated name TSocket and fix TCPserver->TCPServer
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:11:29 +0000 (01:11 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:11:29 +0000 (01:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668971 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/lib/thrift/transport/socket.rb

index 762b8d3..fdd0bc0 100644 (file)
@@ -47,7 +47,7 @@ module Thrift
       begin
         data = @handle.recv(sz)
         if (data.length == 0)
-          raise TransportException.new("TSocket: Could not read #{sz} bytes from #{@host}:#{@port}")
+          raise TransportException.new("Socket: Could not read #{sz} bytes from #{@host}:#{@port}")
         end
         return data
       rescue StandardError
@@ -69,7 +69,7 @@ module Thrift
     end
 
     def listen()
-      @handle = TCPserver.new(nil, @port)
+      @handle = TCPServer.new(nil, @port)
     end
 
     def accept()