基于Libevent的Http-WebSocke高并发服务器
基于Libevent库与线程池编写的简单WebSocket服务器与客服端
作者:SSZL
GitHub地址:https://github.com/sszllzss/webSocket_Libevent_ThreadPool
- 由于代码中使用了 C++中的容器,所有采用g++ 编译器编译 请安装g++编译器
- 编译需要安装 Libevent库 与 OpenSsl 库
- Libevent安装方法
- yum install libevent-devel
- OpenSsl库安装
- yum install openssl
- yum install openssl-devel
- MakeFile文件说明
- app: ev_httpd_server_process ev_client_process
- HTTP-Websocket服务器(线程池Libevent库)与Websocket客户端(Libevent库)
- app: ev_thread_server_process ev_client_process
- WebSocket服务器(线程池Libevent库)与WebSocket客户端(Libevent库)
- app: ev_server_process ev_client_process
- WebSocket服务器(Libevent库)与WebSocket客户端(Libevent库)
- app: client_process server_process
- WebSocket服务器(epoll)与WebSocket客户端
- 监听应用对应源码请 查看 MakeFile 文件
- 动态库加载失败解决方法
- sudo vim /etc/ld.so.conf
- 把动态库的绝对路径添加到文件中 一行一个目录
- sudo ldconfig -v
- OK可以了
版权声明:若无特殊注明,本文皆为《SSZL》原创,转载请保留文章出处。
本文链接:基于Libevent的Http-WebSocke高并发服务器 - https://sszlbg.cn/?post=78