2 demonstrate access to rpc calls from ejs
12 function test_AddOne(binding)
15 var conn = new Object();
18 status = rpc_connect(conn, binding, "rpcecho");
19 if (status.is_ok != true) {
20 print("Failed to connect to " + binding + " - " + status.errstr + "\n");
26 status = dcerpc_echo_AddOne(conn, io);
27 print("AddOne(" + i + ")=" + io.out.out_data + "\n");
31 if (ARGV.length == 0) {
32 print("Usage: echo.js <RPCBINDING>\n");
36 var binding = ARGV[0];