class Thrift::UNIXSocket
Public Class Methods
new(path, timeout=nil)
click to toggle source
# File lib/thrift/transport/unix_socket.rb, line 25 def initialize(path, timeout=nil) @path = path @timeout = timeout @desc = @path # for read()'s error @handle = nil end
Public Instance Methods
open()
click to toggle source
# File lib/thrift/transport/unix_socket.rb, line 32 def open begin @handle = ::UNIXSocket.new(@path) rescue StandardError raise TransportException.new(TransportException::NOT_OPEN, "Could not open UNIX socket at #{@path}") end end