-- vim:set ft=lua: -- Include L4 functionality require("L4"); -- Some shortcut for less typing local ld = L4.default_loader; -- Namespace to exchange objects local ns = ld:create_namespace({}); -- The server program, getting the namespace with extended -- access rights (read + write) ld:start({ caps = { namespace = ns:m("rw") }, log = { "server", "cyan" } }, "rom/ex_ns-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. -- Note, the client only gets read rights for the namespace, so it may -- query, but cannot register own objects. ld:start({ caps = { namespace = ns:m("r") }, log = { "client", "green" } }, "rom/ex_ns-client");