PROBLEM WHILE GETTING INPUT IN RUNTIME

Björn Döbel doebel at os.inf.tu-dresden.de
Fri Jan 23 09:45:06 CET 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 21.01.2015 08:05, Sushma Rao wrote:
> I successfully executed the client-server application in l4 re pkg
> folder. Now,I would like to implement chat server application in
> l4re, program does not take the values at run time. So I am unable
> to make client and server communicate with each other.I have
> included libc_be_file_stdin. kindly let me know how to make it
> run.If possible, can you give us the source code of simple chat
> server.

Two things:

1. Your program needs to link with the STDIN libC backend. To do this,
   add libc_be_file_stdin to the REQUIRED_LIBS in your Makefile.

2. At runtime your program needs a connection to the proper log channel.
   Therefore, start the program like this:

   L4.default_loader:start({caps = {},
                            log = L4.Env.log,}
                           "rom/my_program");

Hth,
Bjoern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlTCCg8ACgkQP5ijxgQLUNlrJACfS76c8ub73q+lVWdxe5jE/kBJ
mekAn2MrhQT8n2IX89Q/eSg+TxQb6p4v
=teW+
-----END PGP SIGNATURE-----



More information about the l4-hackers mailing list