mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
52f481b666
(This used to be commit b9e73fa932e8289b756b557faeca1690c02a21ed)
35 lines
466 B
JavaScript
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();
|
|
|
|
|
|
|