1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00
Andrew Tridgell 52f481b666 r8070: a (as yet not working) example of how rpc calls might be made from js scripts
(This used to be commit b9e73fa932e8289b756b557faeca1690c02a21ed)
2007-10-10 13:19:05 -05:00

35 lines
466 B
JavaScript

/*
demonstrate access to rpc calls from ejs
*/
function irpcObj()
{
var o = new Object();
o.in = new Object();
return o;
}
function test_AddOne()
{
var status;
var conn = new Object();
var io = irpcObj();
status = rpc_connect(conn, "ncacn_ip_tcp:localhost", "rpcecho");
printVars(status);
printVars(conn);
io.in.in_data = 3;
status = rpc_call(conn, "echo_AddOne", io);
printVars(status);
printVars(io);
}
print("Starting\n");
test_AddOne();