Git Product home page Git Product logo

chatroom's Introduction

Web Server

Introduction

本项目为使用C++开发的Web服务器,解析了get请求和post请求,能够处理静态资源,支持HTTP长链接,实现了异步日志。

Envoirment

  • OS: Ubuntu 22.04
  • Complier: clang-17.0.4
  • Build tool: xmake

Build

  • 安装xmake
  • 在当前目录下输入xmake即可自动编译,若要使用xmake其它的编译功能,请查看xmake官方文档。
  • 编译完成的可执行文件在Chatroom/build/linux/x86_64/debug或者Chatroom/build/linux/x86_64/release

Usage

./server [-p port] [-d webDir] [-t threads_numbers] [-l logpath] [-v loglevel]

example:

./server -p 8888 -d /zzq/home/myblog -t 6 -l /zzq/home/log -v 0

Model

并发模型为Reactor+非阻塞IO+线程池。

chatroom's People

Contributors

hnkjdaxzzq avatar

Watchers

 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.