21 Star 63 Fork 20

赵建辉 / libuwsc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

libuwsc

license PRs Welcome Issue Welcome Release Version Build Status

一个轻量的针对嵌入式Linux的基于libev的WebSocket客户端C库。 提供Lua绑定。

我为什么要选择libev?

libev尝试追随UNIX工具箱哲学,一次只干一件事,每次都做到最好。

特性

  • 轻量 - 35KB(使用glibc,stripped)
  • 全异步 - 使用libev作为其事件后端
  • 支持SSL - OpenSSL, mbedtls and CyaSSl(wolfssl)
  • 代码结构清晰,通俗易懂,亦适合学习
  • Lua绑定

依赖

安装依赖软件

sudo apt install libev-dev libssl-dev

编译和安装

git clone --recursive https://github.com/zhaojh329/libuwsc.git
cd libuwsc
mkdir build && cd build
cmake ..
make && sudo make install

安装到OpenWRT

opkg update
opkg list | grep libuwsc
opkg install libuwsc-nossl

如果安装失败,你可以自己编译

贡献代码

如果你想帮助libuwsc变得更好,请参考 CONTRIBUTING_ZH.md

技术交流

QQ群:153530783

MIT License Copyright (c) 2019 Jianhui Zhao <zhaojh329@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一个轻量的针对嵌入式Linux的基于libev的WebSocket客户端C库。 展开 收起
C 等 3 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/zhaojh329/libuwsc.git
git@gitee.com:zhaojh329/libuwsc.git
zhaojh329
libuwsc
libuwsc
master

搜索帮助