Coder Social home page Coder Social logo

websocket_libevent_threadpool's Introduction

基于Libevent库与线程池编写的简单WebSocket服务器与客服端

作者:SSZL 博客: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可以了

websocket_libevent_threadpool's People

Contributors

sszllzss avatar

Stargazers

Icemoon avatar  avatar liuxin365 avatar 魏央 avatar 蒙花落 avatar kelvin avatar  avatar Darren avatar  avatar kevin avatar  avatar Cheuk avatar  avatar  avatar  avatar  avatar CloudWebRTC avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.