⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Ruby master
All Projects
Ruby
»
Ruby master
Overview
Activity
Roadmap
Issues
Repository
Like
Download (407 Bytes)
Bug #9753
» simple_client.rb
ThomasWLynch (Thomas Lynch)
, 04/17/2014 10:23 AM
#!/bin/ruby
=begin
simple client does two transactions and quits
=end
require
'socket'
sock
=
UNIXSocket
.
open
(
"test_socket"
)
sock
.
puts
"{
\"
cmd
\"
:
\"
test_interface_to_interface
\"
,
\"
iam
\"
:
\"
simple_client
\"
,
\"
tran
\"
:
\"
1
\"
}"
reply
=
sock
.
gets
puts
reply
sock
.
puts
"{
\"
cmd
\"
:
\"
test_interface_to_interface
\"
,
\"
iam
\"
:
\"
simple_client
\"
,
\"
tran
\"
:
\"
2
\"
}"
reply
=
sock
.
gets
puts
reply
sock
.
close
« Previous
1
2
3
4
5
Next »
(3-3/5)
Loading...