Method: Thrift::UNIXSocket#open

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

#openObject



32
33
34
35
36
37
38
# 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