3 -- Include L4 functionality
6 -- Some shortcut for less typing
7 local ld = L4.default_loader;
9 -- Channel for the two programs to talk to each other.
10 local calc_server = ld:new_channel();
12 -- The server program, getting the channel in server mode.
13 ld:start({ caps = { calc_server = calc_server:svr() },
14 log = { "server", "blue" } },
15 "rom/ex_clntsrv-server");
17 -- The client program, getting the 'calc_server' channel to be able to talk
18 -- to the server. The client will be started with a green log output.
19 ld:start({ caps = { calc_server = calc_server },
20 log = { "client", "green" } },
21 "rom/ex_clntsrv-client");