/desk-ccpp-global-net

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Quick Start

Quick use of cppnet and precautions, see quick start.

Interface

cppnet has three types of external interfaces, which are also defined in three header files

For details, see API.

Example

All simples are in test:

  • simple: Most simple example.
  • echo: Test program of echo with 200 connection.
  • http: Simple HTTP server is implemented with reference to muduo.
  • sendfile: Example of sending and receiving files.
  • pingpong: Pingpong test program.
  • rpc: Interesting rpc program.
  • multi_port: Example of multiple listening ports.

Efficiency

Apache ab is used to pressure test the http test service in the test directory, and compared with muduo.
For details, see ab benchmark

Build

Look at Build