summaryrefslogtreecommitdiff
path: root/testprogs/ejs/echo.js
blob: 6d01f69a5c4ab42226a1ef76ec658468f8ed9e56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
	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();