Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linxiaowu66/libuv-demo
demo for libuv
https://github.com/linxiaowu66/libuv-demo
Last synced: about 6 hours ago
JSON representation
demo for libuv
- Host: GitHub
- URL: https://github.com/linxiaowu66/libuv-demo
- Owner: linxiaowu66
- Created: 2019-08-20T09:49:44.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-13T02:11:13.000Z (5 months ago)
- Last Synced: 2024-06-13T06:31:39.904Z (5 months ago)
- Language: C
- Size: 27.3 KB
- Stars: 18
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learning Libuv
You can use CLion to build this project, or other IDE support Cmake to build.
Base on libuv version v1.31.1
## Demos
| 文件名 | 涉及到的知识点 |
| ------------- | ------------------------------------------------------------------------------------------- |
| hello_libuv.c | 如何启动Libuv事件循环 |
| idle.c | 了解idle句柄的使用,并查看idle句柄的回调和prepare句柄的回调执行顺序 |
| fs.c | 掌握libuv是如何读写文件的一般思路 |
| process.c | 掌握libuv是如何创建进程的一般步骤 |
| tcpserver.c | 掌握libuv启动一个tcp服务器的基本步骤,并学习计时器句柄的使用,以及如何获取活跃的句柄 |
| udpserver.c | 掌握libuv启动一个udp服务器的基本步骤,并学习信号句柄的使用 |
| thread.c | 掌握libuv是如何使用线程的。包括线程创建、异步句柄的使用、线程池调度、以及读写锁和屏障的使用 |
| pipe | 掌握libuv是如何使用管道的 |## Knowledge Points
- ✅ 怎么启动libuv的事件循环
- ✅ uv_loop_t — Event loop
- ✅ Timer handle
- ✅ Idle handle
- ✅ Async handle
- ✅ Signal handle
- ✅ Process handle
- ✅ Stream handle
- ✅ TCP handle
- ✅ Pipe handle
- ✅ UDP handle
- ✅ File system operations
- ✅ Thread pool work scheduling
- ✅ DNS utility functions
- ✅ Threading and synchronization utilities
- [ ] Prepare handle
- ☑️ Check handle
- ☑️ Poll handle
- ☑️ TTY handle
- ☑️ FS Event handle
- ☑️ FS Poll handle
- ☑️ Shared library handling