aboutsummaryrefslogblamecommitdiffstats
path: root/doc/examples/timed/README
blob: db34fa065b7bc248bcdc28e0b7229d01937178f7 (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, ./read, ./init and ./cleanup are run without any
additional arguments. ./write is run with the message
as the second argument.