GitHub is where people build software. More than 150 million people use GitHub to discover, fork, and contribute to over 420 million projects.
项目Github地址:https://github.com/cpp-main/cpp-tbox cpp-tbox 是一个跨平台、轻量级的 C++ 工具库,旨在提供丰富的常用功能和便捷的编程接口。它的设计目标是简单易用、高效可靠,并且具有较低的资源消耗。 以下是 cpp-tbox 的一些特点和功能: 1.跨平台支持:cpp-tbox 可以在多个主流操作系统上运行,包括 Window...
cpp-tbox是一个Linux C++,MIT开源许可的,基于 Reactor 模式的开发框架与组件库。它主要针对智能硬件、机器人、网络服务等开发领域。它提供了一套易于开发、稳定可靠的框架,有:通信库(TCP/UDP/串口)、HTTP、线程池、定时器池、协程、日志、命令终端、状态机、行为树等非常实用的开发组件,以及完备实用的主框架,能为...
https://github.com/cpp-main/cpp-tboxgithub.com/cpp-main/cpp-tbox gitee的链接是: cpp-master/cpp-tboxgitee.com/cpp-master/cpp-tbox CPP-TBOX,全称是C++ Treasure Box,翻译过来就是C++百宝箱,是一个基于Reactor 模式的服务型开发框架与组件库,旨在让C++开发变得轻松。该库是由一个cpp_main的团队...
You only need to derive thetbox::main::Moduleclass, fill in the business code, and then register to the framework. 3. With Shell-like terminal You can interact with the running service through telnet, make it print internal data, or perform specific actions. This greatly reduces the difficul...
master .github 3rd-party documents examples mk exe_common.mk lib_common.mk lib_header_only_common.mk lib_tbox_common.mk modules tools .gitignore CMakeLists.txt CONTRIBUTING.md CONTRIBUTORS.md Config.cmake.in LICENSE Makefile README.md README_CN.md build_env.mk config.mk version.mkBreadcru...
#include"tbox/tbox.h"intmain(intargc,char**argv) {/* init tbox** @param priv the platform private data* pass JavaVM* jvm for android jni* pass tb_null for other platform** @param allocator the allocator, supports:** - tb_native_allocator()* uses native memory directly** - tb_stati...
A complete Linux application software development tool library and runtime framework, aim at make C++ development easy. - feat(main,util,flow): 1.11.10 · cpp-main/cpp-tbox@f54f8b0
event->onEvent(tbox_events); //!在epoll中,无论有没有监听EPOLLHUP,在对端close了fd时都会触发本端EPOLLHUP事件 //! 只要发生了EPOLLHUB事件,就无法停止它,得强制disable()所有fd关联FdEvent //! 否则它会一直触发事件,导致Loop空跑,CPU占满问题 if (is_got_hup) { //!将HUP事件当成可读事件,上层读...
Step 1:build cpp-tbox first git clone https://gitee.com/cpp-master/cpp-tbox.git cd cpp-tbox; STAGING_DIR=$HOME/.tbox make 3rd-party modules RELEASE=1 cd - Step 2:Build cpp-socks5 self git clone https://gitee.com/cpp-master/cpp-socks5.git cd cpp-socks5/src; make Run Run wi...