{"id":26595982,"url":"https://github.com/zhaocc1106/linux_server_programming","last_synced_at":"2026-05-20T10:11:00.570Z","repository":{"id":56587259,"uuid":"308495017","full_name":"zhaocc1106/linux_server_programming","owner":"zhaocc1106","description":"linux高性能服务器编程","archived":false,"fork":false,"pushed_at":"2020-11-19T12:27:13.000Z","size":93,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T16:40:46.654Z","etag":null,"topics":["hpp","libevent","reactive-server"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhaocc1106.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-30T01:38:47.000Z","updated_at":"2022-09-10T12:56:20.000Z","dependencies_parsed_at":"2022-08-15T21:30:56.722Z","dependency_job_id":null,"html_url":"https://github.com/zhaocc1106/linux_server_programming","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhaocc1106/linux_server_programming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaocc1106%2Flinux_server_programming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaocc1106%2Flinux_server_programming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaocc1106%2Flinux_server_programming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaocc1106%2Flinux_server_programming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhaocc1106","download_url":"https://codeload.github.com/zhaocc1106/linux_server_programming/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaocc1106%2Flinux_server_programming/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264640062,"owners_count":23642331,"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":["hpp","libevent","reactive-server"],"created_at":"2025-03-23T16:36:12.739Z","updated_at":"2026-05-20T10:10:55.551Z","avatar_url":"https://github.com/zhaocc1106.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# linux_server_programming\nlinux服务器编程\n\n## server\n[tools.hpp](https://github.com/zhaocc1106/linux_server_programming/blob/main/server/include/tools.hpp)：常用工具，例如进程守护化方法。\u003cbr\u003e\n[thread_safe_queue.hpp](https://github.com/zhaocc1106/linux_server_programming/blob/main/server/include/thread_safe_queue.hpp)：多线程安全队列。\u003cbr\u003e\n[simple_tcp_server.hpp](https://github.com/zhaocc1106/linux_server_programming/blob/main/server/include/simple_tcp_server.hpp)：简单的tcp server，回顾常用的socket api，以及socket创建，监听，接受，读写。\u003cbr\u003e\n[simple_file_down_server.hpp](https://github.com/zhaocc1106/linux_server_programming/blob/main/server/include/simple_file_down_server.hpp)：一个简单的文件下载服务器，使用sendfile函数实现零拷贝（用户空间和内核空间）。\u003cbr\u003e\n[multi_connection_server.hpp](https://github.com/zhaocc1106/linux_server_programming/blob/main/server/include/multi_connection_server.hpp)：使用select，poll，epoll（et与lt触发模式，并且reactor I/O模型将任务放到分发线程池中提升并发）多路复用机制实现支持多客户端连接的服务器。\u003cbr\u003e\n[libev_multi_con_server.hpp](https://github.com/zhaocc1106/linux_server_programming/blob/main/server/include/libev_multi_con_server.hpp)：使用libevent事件驱动和单线程实现支持多客户端连接的服务器。\u003cbr\u003e\n[libev_half_sync_reactive_thread_pool_server.hpp](https://github.com/zhaocc1106/linux_server_programming/blob/main/server/include/libev_half_sync_reactive_thread_pool_server.hpp)：使用libevent事件驱动 + half-sync/half-reactive事件处理模式 + 线程池实现高速处理多请求的server。\u003cbr\u003e\n[epoll_half_sync_reactive_proc_pool_server.hpp](https://github.com/zhaocc1106/linux_server_programming/blob/main/server/include/epoll_half_sync_reactive_proc_pool_server.hpp)：使用epoll多路复用 + half-sync/half-reactive事件处理模式 + 进程池实现及时处理多请求的server。\u003cbr\u003e\n\n## client\n[simple_tcp_client.hpp](https://github.com/zhaocc1106/linux_server_programming/blob/main/client/include/simple_tcp_client.hpp)：简单的tcp client，回顾常用的socket api，以及socket创建，连接，读写。\u003cbr\u003e\n[libevent_no_block_client.hpp](https://github.com/zhaocc1106/linux_server_programming/blob/main/client/include/libevent_no_block_client.hpp)：使用libevent事件驱动实现非阻塞多客户端请求。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaocc1106%2Flinux_server_programming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhaocc1106%2Flinux_server_programming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaocc1106%2Flinux_server_programming/lists"}