Sha256: 065676054d9b4585aadc7e10fd4ecd1b6949c8790d169b6bcdcce7b1521f231f
Contents?: true
Size: 410 Bytes
Versions: 2
Compression:
Stored size: 410 Bytes
Contents
$:.push(File.join(File.dirname(__FILE__), "..", "..", "lib")) require "marilyn-rpc" client = MarilynRPC::NativeClient.connect_tcp('localhost', 8000) TestService = client.for(:test) begin p TestService.add(1, 2) rescue MarilynRPC::MarilynError => ex puts "PermissionDenied: #{ex.message}" end p TestService.time.to_f client.authenticate "testuserid", "secret" p TestService.add(1, 2) client.disconnect
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
marilyn-rpc-0.0.4 | examples/authentication/client.rb |
marilyn-rpc-0.0.3 | examples/authentication/client.rb |