{"id":46948648,"url":"https://github.com/lianzeng/networklib","last_synced_at":"2026-03-11T07:41:43.680Z","repository":{"id":231828300,"uuid":"114010199","full_name":"lianzeng/networklib","owner":"lianzeng","description":" multi thread network library using epoll+nonblocking io in C++11","archived":false,"fork":false,"pushed_at":"2019-03-08T11:29:06.000Z","size":129,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-06T06:41:31.451Z","etag":null,"topics":["cpp11","framework","library","linux-programming","multi-threading","network-programming"],"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/lianzeng.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-12-12T15:59:34.000Z","updated_at":"2024-04-06T06:41:32.341Z","dependencies_parsed_at":"2024-04-06T06:51:43.565Z","dependency_job_id":null,"html_url":"https://github.com/lianzeng/networklib","commit_stats":null,"previous_names":["lianzeng/networklib"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lianzeng/networklib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lianzeng%2Fnetworklib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lianzeng%2Fnetworklib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lianzeng%2Fnetworklib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lianzeng%2Fnetworklib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lianzeng","download_url":"https://codeload.github.com/lianzeng/networklib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lianzeng%2Fnetworklib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30374901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cpp11","framework","library","linux-programming","multi-threading","network-programming"],"created_at":"2026-03-11T07:41:43.484Z","updated_at":"2026-03-11T07:41:43.674Z","avatar_url":"https://github.com/lianzeng.png","language":"C++","readme":"# multiThread network library on linux platform Using C++11\n\nlinux multi thread programming in C++11.\n\n1)IO multiplexing: poll, epoll;\n\n2)use nonblock IO, support fd type: socketfd, timerfd, eventfd, listenfd;  provide a unify framework for timer,socket,signal processing.\n\n3)one IO/Event loop per thread + reactor(callback), using std::bind + std::function to implement callback;\n\n4)tcp connections are balanced among threads;\n\n5)the tcp server has 1 acceptor thread + event_loop_thread_pool;\n\n6)each tcp connection has 1 owner eventloop thread, other threads operator the connection by  adding a task to the ownerloop's taskqueue. \n\n7)test cases could run independently, with valgrind memory detect;\n\n8)User call TcpConnection::send(msg) to send msg, and provide Callback to process peer msg(refer to multiThread/libnet/test/TestEchoClient.cpp).\n\n9).It's easy to learn the message flow from EchoClient.log and EchoServer.log;\n\n\n\n# This project is build on following environment:\n  Linux  x86_64 Ubuntu 15.04; GCC 4.9.2\n  \n# Develop Tool used: \nGit + Clion_Linux_Version / VScode\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flianzeng%2Fnetworklib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flianzeng%2Fnetworklib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flianzeng%2Fnetworklib/lists"}