Quick use of cppnet
and precautions, see quick start.
cppnet
has three types of external interfaces, which are also defined in three header files
- Initialization and global configuration, defined in cppnet
socket
operation, defined in cppnet_socketbuffer
read, defined in cppnet_buffer
For details, see API.
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.
Apache ab
is used to pressure test the http
test service in the test directory, and compared with muduo
.
For details, see ab benchmark。
Look at Build