# webSocket_Libevent_ThreadPool **Repository Path**: sszl_blog/webSocket_Libevent_ThreadPool ## Basic Information - **Project Name**: webSocket_Libevent_ThreadPool - **Description**: 基于Libevent库与线程池编写的简单WebSocket服务器与客服端 - **Primary Language**: C - **License**: Artistic-2.0 - **Default Branch**: master - **Homepage**: https://github.com/sszllzss/webSocket_Libevent_ThreadPool - **GVP Project**: No ## Statistics - **Stars**: 9 - **Forks**: 5 - **Created**: 2018-11-20 - **Last Updated**: 2025-05-26 ## Categories & Tags **Categories**: web-dev-toolkits **Tags**: None ## README # 基于Libevent库与线程池编写的简单WebSocket服务器与客服端 # >## 作者:SSZL 博客:[https://sszlbg.cn](https://sszlbg.cn) 你好 >> * 由于代码中使用了 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可以了