90

libuv设计概览 | hello2dj

 6 years ago
source link: https://hello2dj.github.io/2018/01/10/libuv%E6%A6%82%E8%A7%88/?
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
先上图 设计概览libuv是一个跨平台的异步事件库。libuv对于不同的I/O轮询机制提供了很多的抽象。例如:handle和stream是对socket和其他实体的高等抽象。还提供了跨平台的文件I / O和线程功能。以及一些其他的功能。此处图一张: handles 和requestslibuv给用户提供了两个抽象用于和事件循环进行交互: handle和request。handle表示长期存在的对

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK