Sample configuration file for the client/server example.
Sample configuration file for the client/server example.
-- vim:set ft=lua:
-- Include L4 functionality
local L4 = require("L4");
-- Some shortcut for less typing
local ld = L4.default_loader;
-- Channel for the two programs to talk to each other.
local calc_server = ld:new_channel();
-- The server program, getting the channel in server mode.
ld:start({ caps = { calc_server = calc_server:svr() },
log = { "server", "blue" } },
"rom/ex_clntsrv-server");
-- The client program, getting the 'calc_server' channel to be able to talk
-- to the server. The client will be started with a green log output.
ld:start({ caps = { calc_server = calc_server },
log = { "client", "green" } },
"rom/ex_clntsrv-client");