aboutsummaryrefslogblamecommitdiffstats
path: root/doc/examples/timed/README
blob: 215a73895e2044283f18d03fa4baa678e8bcb6df (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                      


                                                     


                                                    
                                                        


                                                     
API usage example

This example shows how to use timed operations.



First of, run make to build this example.

To start the example run ./init.
When you are done run ./cleanup.

Running instances of ./poll will wait for new messages
continuously, but with one second timeouts.

Running instances of ./read will read for ten seconds
then time out.

./poll and ./read will stop if the message "stop" is
broadcasted.

./poll, ./read, ./init and ./cleanup are run without any
additional arguments. ./write is run with the message
as the second argument.