2019-06-03 21:25:59 +02:00
|
|
|
# how to compile
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
make
|
2019-06-03 21:25:59 +02:00
|
|
|
|
|
|
|
# how to launch
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
If libipc is already installed and you have the rights to create unix sockets in the default directory (/run/ipc), just run the code:
|
|
|
|
|
|
|
|
./pongd
|
|
|
|
|
|
|
|
|
|
|
|
In case you want to test the library and example programs:
|
|
|
|
|
|
|
|
# This is a directory anybody can write in
|
2019-06-03 21:25:59 +02:00
|
|
|
export IPC_RUNDIR=/tmp
|
2020-01-01 12:11:34 +01:00
|
|
|
|
|
|
|
# to test the library without installing it
|
2019-06-03 21:25:59 +02:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../
|
2020-01-01 12:11:34 +01:00
|
|
|
|
|
|
|
# finally, run the program, here a pong daemon
|
2019-06-03 21:25:59 +02:00
|
|
|
./pongd
|
|
|
|
|
2020-01-01 12:11:34 +01:00
|
|
|
# same thing in another terminal, to test the client
|
2019-06-03 21:25:59 +02:00
|
|
|
export IPC_RUNDIR=/tmp
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:../
|
|
|
|
./pong
|