{"id":15039714,"url":"https://github.com/caozhiyi/cppnet","last_synced_at":"2025-04-08T04:15:08.544Z","repository":{"id":40000153,"uuid":"136014386","full_name":"caozhiyi/CppNet","owner":"caozhiyi","description":"Cross platform network library with C++11","archived":false,"fork":false,"pushed_at":"2024-08-16T02:30:31.000Z","size":1381,"stargazers_count":1093,"open_issues_count":0,"forks_count":247,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-08T04:15:03.297Z","etag":null,"topics":["epoll","iocp","kqueue","socket"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caozhiyi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-04T11:20:12.000Z","updated_at":"2025-04-07T03:59:37.000Z","dependencies_parsed_at":"2023-02-07T02:01:52.579Z","dependency_job_id":"5b7fb41c-fc68-4ee5-80f1-be2448adf9f7","html_url":"https://github.com/caozhiyi/CppNet","commit_stats":{"total_commits":377,"total_committers":17,"mean_commits":"22.176470588235293","dds":0.273209549071618,"last_synced_commit":"03bead273ab931412d4e01f0ca6b6a1aee357107"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caozhiyi%2FCppNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caozhiyi%2FCppNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caozhiyi%2FCppNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caozhiyi%2FCppNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caozhiyi","download_url":"https://codeload.github.com/caozhiyi/CppNet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773719,"owners_count":20993639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["epoll","iocp","kqueue","socket"],"created_at":"2024-09-24T20:43:43.083Z","updated_at":"2025-04-08T04:15:08.515Z","avatar_url":"https://github.com/caozhiyi.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"left\"\u003e\u003cimg width=\"500\" src=\"./doc/image/logo.png\" alt=\"cppnet logo\"\u003e\u003c/p\u003e\n\n\u003cp align=\"left\"\u003e\n    \u003ca href=\"https://travis-ci.org/caozhiyi/CppNet\"\u003e\u003cimg src=\"https://travis-ci.org/caozhiyi/CppNet.svg?branch=master\" alt=\"Build Status\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://opensource.org/licenses/BSD-3-Clause\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-bsd-orange.svg\" alt=\"Licenses\"\u003e\u003c/a\u003e\n\u003c/p\u003e \n\nSee [chinese](/README_cn.md)    \nSee the details in chinese [wiki](https://github.com/caozhiyi/CppNet/wiki)\n## Introduction\n\nCppnet is a proactor mode and multithreaded network with C++11 on tcp. Support Window, Linux and macOS.    \n - `Simple`:    \n    + Only export a little interfaces, all net io insterface are asynchronous callbacks\n    + Insterface as much as possible like calling the socket API of the system\n    + There is only one additional buffer interface for the client\n    + Support both IPv4 and IPv6\n\n - `Fast`: \n    + Use epoll, [wepoll](https://github.com/piscisaureus/wepoll) and kqueue\n    + Multithreaded threads are handled by the kernel\n    + Each socket has a single memory pool object. All memory requested from the memory pool is managed by an intelligent pointer \n    + Using time wheel to realize timer   \n \n - `Clear`:\n    + Three layers: event-driven layer, session management layer and interface layer\n    + Upward notification through callbacks between layers. Clear division of responsibilities among modules, pay to Caesar what belongs to Caesar and God what belongs to God\n    + The interface decoupling module is used to meet the minimum interface principle and dependency inversion principle  \n\n## Quick Start\nQuick use of `cppnet` and precautions, see [quick start](doc/start/quick_start.md).\n\n## Interface\n\n`cppnet` has three types of external interfaces, which are also defined in three header files   \n- Initialization and global configuration, defined in [cppnet](/include/cppnet.h)   \n- `socket` operation, defined in [cppnet_socket](/include/cppnet_socket.h)   \n- `buffer` read, defined in [cppnet_buffer](/include/cppnet_buffer.h)   \n   \nFor details, see [API](/doc/api/api.md).   \n\n## Example\n\nAll simples are in [test](/test):   \n- [simple](/test/simple): Most simple example.   \n- [echo](/test/echo): Test program of echo with 200 connection.   \n- [http](/test/http): Simple HTTP server is implemented with reference to muduo.   \n- [sendfile](/test/sendfile): Example of sending and receiving files.   \n- [pingpong](/test/pingpong): Pingpong test program.   \n- [rpc](/test/rpc): Interesting rpc program.   \n- [multi_port](/test/multi_port): Example of multiple listening ports.      \n\n## Efficiency\n\nApache `ab` is used to pressure test the `http` test service in the [test](/test) directory, and compared with `muduo`.    \nFor details, see [ab benchmark](/doc/efficiency/apache_ab_bench.md)。\n\n## Build\n\nLook at [Build](/doc/build/build.md)\n\n## Licenses\n\nThis program is under the terms of the BSD 3-Clause License. For details, see [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaozhiyi%2Fcppnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaozhiyi%2Fcppnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaozhiyi%2Fcppnet/lists"}