1.1、libwebsockets简介
是什么 ? | : | a simple-to-use, MIT-license, pure C library providing client and server for http/1, http/2, websockets, MQTT and other protocols in a security-minded, lightweight, configurable, scalable and flexible way. |
开发语言 | : | C |
官方主页 | : | https://libwebsockets.org |
源码仓库 | : | https://github.com/warmcat/libwebsockets |
1.2、通过包管理器安装libwebsockets
操作系统 | 包管理器 | 安装命令 |
---|
All | vcpkg | vcpkg install libwebsockets
vcpkg install libwebsockets:x64-osx
vcpkg install libwebsockets:x64-linux
vcpkg install libwebsockets:x64-windows
|
macOS | HomeBrew | brew install libwebsockets |
GNU/Linux | HomeBrew | brew install libwebsockets |
| apt | sudo apt-get install -y libwebsockets |
CentOS | yum | sudo yum install -y libwebsockets |
| dnf | sudo dnf install -y libwebsocket |
openSUSE | zypper | sudo zypper install -y libwebsockets |
Alpine Linux | apk | sudo apk add libwebsockets |
Arch Linux ArcoLinux Manjaro Linux | pacman | sudo pacman -Syyu --noconfirm sudo pacman -S --noconfirm libwebsockets |
Gentoo Linux | Portage | sudo emerge libwebsockets |
1.3、通过编译源码安装libwebsockets
1.4、libwebsockets中包含的头文件
1.5、libwebsockets中包含的库文件
- libwebsockets.{a | so | dylib}