]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/examples/libs/l4re/streammap/streammap.cfg
update
[l4.git] / l4 / pkg / examples / libs / l4re / streammap / streammap.cfg
1 -- vim:set ft=lua:
2
3 -- Include L4 functionality
4 require("L4");
5
6 -- Channel for the communication between the server and the client.
7 local smap_channel = L4.default_loader:new_channel();
8
9 -- The server program, using the 'smap' channel in server
10 -- mode. The log prefix will be 'server', colored yellow.
11 L4.default_loader:start({ caps = { smap = smap_channel:svr() },
12                           log = { "server", "yellow" }},
13                         "rom/ex_smap-server");
14
15
16 -- The client program.
17 -- It is given the 'smap' channel to be able to talk to the server. 
18 -- The log prefix will be 'client', colored green.
19 L4.default_loader:start({ caps = { smap = smap_channel },
20                           log = { "client", "green" } },
21                         "rom/ex_smap-client");