3 -- Include L4 functionality
6 -- Name space for the server program, giving access to the full 'rom' name
7 -- space. The server will register the name 'smap_server'.
8 local ns_smap_server = L4.default_loader:create_namespace({
9 rom = L4.Env.names:q("rom");
10 smap_server = "placeholder";
13 -- The server program, using the 'ns_smap_server' name space in writable
14 -- mode. The log prefix will be 'server', colored yellow.
15 L4.default_loader:start({ ns = ns_smap_server:rw(),
16 log = { "server", "yellow" }},
17 "rom/ex_smap-server");
20 -- The client program.
21 -- The name space for the client program is constructed inline and giving
22 -- access to the full 'rom' name space. The 'smap_server' name points to
23 -- the name that will be registered in the 'ns_smap_server' name space,
24 -- i.e. the client is able to find the server.
25 -- The log prefix will be 'client', colored green.
26 L4.default_loader:start({ ns = { smap_server = ns_smap_server:l("smap_server") },
27 log = { "client", "green" } },
28 "rom/ex_smap-client");