]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/examples/clntsrv/clntsrv.cfg
update
[l4.git] / l4 / pkg / examples / clntsrv / clntsrv.cfg
1 -- vim:set ft=lua:
2
3 -- Include L4 functionality
4 require("L4");
5
6 -- Some shortcut for less typing
7 local ld = L4.default_loader;
8
9 -- Channel for the two programs to talk to each other.
10 local calc_server = ld:new_channel();
11
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");
16
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");