Software:libuv
From HandWiki
Written in | C |
---|---|
Operating system | Cross-platform |
Platform | Linux, Android, Windows and OS X/Darwin,[1] FreeBSD, OpenBSD |
Type | I/O abstraction library |
License | MIT |
libuv is a multi-platform C library that provides support for asynchronous I/O based on event loops. It supports epoll(4)
, kqueue(2)
, Windows IOCP, Solaris event ports and Linux io uring. It is primarily designed for use in Node.js but it is also used by other software projects.[2] It was originally an abstraction around libev or Microsoft IOCP, as libev doesn't support IOCP on Windows. In node-v0.9.0's version of libuv, the dependency on libev was removed.[3]
Features
From:[1]
- Full-featured event loop backed by epoll, kqueue, IOCP, event ports
- Asynchronous TCP and UDP sockets
- Asynchronous DNS resolution
- Asynchronous file and file system operations
- File system events
- ANSI escape code controlled TTY
- IPC with socket sharing, using Unix domain sockets or named pipes (Windows)
- Child processes
- Thread pool
- Signal handling
- High resolution clock
- Threading and synchronization primitives
Origin of the name
According to libuv developer Ben Noordhuis, the name libuv originally had no specific meaning, but as people kept asking about it, so they made something up. They came up with Unicorn Velociraptor, which became the logo of the library.[4]
See also
- libevent
- libev
- Reactor pattern
References
- ↑ 1.0 1.1 "The libuv project page and source code". https://github.com/libuv/libuv. Retrieved 30 June 2016.
- ↑ "Projects that use libuv". https://github.com/libuv/libuv/wiki/Projects-that-use-libuv. Retrieved 30 June 2016.
- ↑ An introduction to libuv
- ↑ "What does UV stand for in libuv?". https://groups.google.com/g/libuv/c/jGpqKLXAVBE.
External links
Original source: https://en.wikipedia.org/wiki/Libuv.
Read more |