Method: Thrift::UNIXSocket#initialize

Defined in:
lib/thrift/transport/unix_socket.rb

#initialize(path, timeout = nil) ⇒ UNIXSocket

Returns a new instance of UNIXSocket.



25
26
27
28
29
30
# 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