Uvxamples
No description available
Install / Use
/learn @juanarbol/UvxamplesREADME
uvxamples
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.
Building:
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
Buidling and running examples:
$ FILE=./src/timer/timer.c ./build.sh
$ ./build/example
Example index:
- 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
Dependencies:
- Cmake (at least 3.0).
- Make.
- Your preferred C compiler
