Special thanks to Saúl Ibarra for the recomendation of using Cmake to build Libuv and this project, also, a huge part of this code was taken from his project txiki.js https://github.com/saghul/txiki.js
This project is just for showcasing some examples of libuv API. Read basics of libuv first.
This use CMake and Make as building tools, so we can run multiplatform!
Run FILE=fileRoute ./build.sh
, yes, that's it!
Debug objects could be generated by providing the BUILD_TYPE
environment variable
("Release" is the default build mode):
$ BUILD_TYPE=Debug FILE=./src/timer/timer.c ./build.sh
$ FILE=./src/timer/timer.c ./build.sh
$ ./build/example
- async: async handles
- check: check phase example
- fs events: file system events examples
- fs: file system operations examples
- idle: idle examples
- loop: event loop API examples
- metrics: libuv metrics operations
- misc: misc examples
- pipe: pipe example
- poll: polling phase example
- prepare: prepare phase example
- signals: signal examples
- tcp: tcp examples
- threads: threads examples
- timer: timer examples
- Cmake (at least 3.0).
- Make.
- Your preferred C compiler