# File usr/lib/ruby/vendor_ruby/thrift/transport/unix_socket.rb, line 24 def initialize(path, timeout=nil) @path = path @timeout = timeout @desc = @path # for read()'s error @handle = nil end
# File usr/lib/ruby/vendor_ruby/thrift/transport/unix_socket.rb, line 31 def open begin @handle = ::UNIXSocket.new(@path) rescue StandardError raise TransportException.new(TransportException::NOT_OPEN, "Could not open UNIX socket at #{@path}") end end