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.
-----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
l4-hackers@os.inf.tu-dresden.de