Code Monkey home page Code Monkey logo

trans_server's Introduction

转发服务器

一个基于epoll和线程池的转发服务器,线程池利用Linux多线程和条件锁实现

##编译说明

make server 生成服务端程序

编译服务器程序时需要将thread_pool/libthread_pool.so 放到自定义的库位置 /usr/local/lib/my_lib/中,并设置好运行时的链接路径

make client 生成客户端程序

##代码结构说明

  1. src 中存放着服务器和客户端代码及相关头文件

  2. test 存放着自己写的小的测试程序

  3. thread_pool 存放着线程池的相关代码,线程池最终是以库的形式提供的

trans_server's People

Watchers

 avatar  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.