blob: 215a73895e2044283f18d03fa4baa678e8bcb6df (
plain) (
tree)
|
|
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.
|