class Thrift::UNIXSocket
Public Class Methods
Source
# File lib/thrift/transport/unix_socket.rb 26 def initialize(path, timeout = nil) 27 @path = path 28 @timeout = timeout 29 @desc = @path # for read()'s error 30 @handle = nil 31 end
Public Instance Methods
Source
# File lib/thrift/transport/unix_socket.rb 33 def open 34 @handle = ::UNIXSocket.new(@path) 35 rescue StandardError 36 raise TransportException.new(TransportException::NOT_OPEN, "Could not open UNIX socket at #{@path}") 37 end