Skip to content

Instantly share code, notes, and snippets.

@SpringMT
Created June 26, 2012 16:13
Show Gist options
  • Save SpringMT/2996775 to your computer and use it in GitHub Desktop.
Save SpringMT/2996775 to your computer and use it in GitHub Desktop.
test_hs
#!/usr/bin/env ruby
# encoding: UTF-8
require 'handler_socket'
require 'ap'
ap @hs = HandlerSocket.new(:host => '192.168.110.25', :port => '9998')
#ap @hs.error_code
ap @hs.open_index(1, 'hs_test', 'test', 'PRIMARY', 'data')
#ap @hs.error_code
ap @hs.execute_single(1, '=', [1], 1,0)
@hs.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment