uvcc sources are accompanied with several illustrative example programs the source code of which can be found in the /example subdirectory.
- lxjs2012-demo - an example used by Bert Belder at LXJS 2012 to demonstrate the libuv basics.
It shows how uvcc simplifies the code.
- cpio - a simple program that copies its
stdin
to stdout
.
It shows some essential points that one comes across with when beginning to develop programs using libuv and how uvcc address them.
- tee - a program that copies its
stdin
to stdout
and also to each file specified as a program argument.
It demonstrates uvcc features and simple version of the buffer pool that can avoid intense memory allocation requests.