-
spserver 是一个实现了半同步/半异步(Half
spserver 是一个实现了半同步/半异步(Half-Sync/Half-Async)和领导者/追随者(Leader/Follower) 模式的服务器框架,能够简化 TCP server 的开发工作。
spserver 使用 c++ 实现,目前实现了以下功能:
1.封装了 TCP server 中接受连接的功能;
2.使用非阻塞型I/O和事件驱动模型,由主线程负责处理所有 TCP 连接上的数据读取和发送,因此连接数不受线程数的限制;
3.主线程读取到的数据放入队列,由一个线程池处理实际的业务。
4.一个 http 服务器框架,即嵌入式 web 服务器(请参考: SPWebServer:一个基于 SPServer 的 web 服务器框架)
-spserver is a realization of a semi-synchronous/semi-asynchronous (Half-Sync/Half-Async) and leader/followers (Leader/Follower) model server framework, to simplify the development of TCP server. spserver use c++ realize now realize the following functions: 1. Packaging the TCP server to accept connections function 2. the use of non-blocking type I/O and event-driven model, by the main thread responsible for handling all TCP connection read and send data, so connections are not thread a few restrictions 3. the main thread to read data Add queue, by a thread pool handle the actual business. 4. A http server framework, that is, embedded web server (p
- 2023-03-18 00:40:03下载
- 积分:1
-
Linux操作系统内存磁盘初始化技术详细解析
Linux操作系统内存磁盘初始化技术详细解析-Linux Fuzeng brazing department conduct anti twitter Jian TONG Zhao summarized its original site captured术lowly agate细Pleiades
- 2022-06-01 22:08:01下载
- 积分:1
-
Linux Advanced Techniques
Linux高级技巧-Linux Advanced Techniques
- 2022-04-09 23:10:31下载
- 积分:1
-
linux命令,有用法,例子,中文的说明
linux命令,有用法,例子,中文的说明-linux command, have the use of examples, description of Chinese
- 2022-02-07 15:06:20下载
- 积分:1
-
linux下的一个串口调试程序的源代码
linux下的一个串口调试程序的源代码-of a serial debugging program"s source code
- 2022-02-02 15:21:06下载
- 积分:1
-
遍历指定文件夹所有文件,并实现脚本提取,将提取的脚本存储在指定文件夹中...
遍历指定文件夹所有文件,并实现脚本提取,将提取的脚本存储在指定文件夹中-Designated folder traversal of all documents and scripts realize extraction, will extract the script is stored in the designated folder
- 2022-03-05 14:42:10下载
- 积分:1
-
linux下的串口工具
linux下的串口工具-The Serial tool
- 2022-03-22 06:17:40下载
- 积分:1
-
UNIX环境下利用高级IO技术实现非阻塞的输入/输出
UNIX环境下利用高级IO技术实现非阻塞的输入/输出-UNIX environment using high technology to achieve non-blocking IO input/output
- 2023-02-06 05:50:03下载
- 积分:1
-
将需要公开的接口用一个句柄类封装起来,调用者只通过封装的句柄类来调用实现, 这样,将调用与实现隔离开来,或者说只让调用看到它所需要看到的接口。这样的话,只要 保...
将需要公开的接口用一个句柄类封装起来,调用者只通过封装的句柄类来调用实现, 这样,将调用与实现隔离开来,或者说只让调用看到它所需要看到的接口。这样的话,只要 保证接口不变,那么实现代码的中要添加一些变量,函数,将不会影响到调用者。-will require an open interface with a handle Packaging category, called only by the Packaging category to handle Call, which would call and to achieve separation, or call only need to see it to see the interface. So, as long as the guarantee the same interface, then the realization of the code necessary to add some variables, function and will not affect the person to call.
- 2022-01-24 12:47:47下载
- 积分:1
-
r_tree原代码
r_tree原代码-r_tree source
- 2023-08-16 02:05:03下载
- 积分:1