{"id":37574351,"url":"https://github.com/dvsku/libnetwrk","last_synced_at":"2026-01-16T09:28:16.644Z","repository":{"id":159195261,"uuid":"612046900","full_name":"dvsku/libnetwrk","owner":"dvsku","description":"Cross-platform networking library.","archived":false,"fork":false,"pushed_at":"2024-05-19T13:20:50.000Z","size":1979,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-19T14:32:15.054Z","etag":null,"topics":["cpp","cpp20","cross-platform","dvsku","dvsku-libnetwrk","libnetwrk","networking","networking-library"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dvsku.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":"2023-03-10T04:38:33.000Z","updated_at":"2024-05-21T18:43:20.747Z","dependencies_parsed_at":"2024-05-11T18:30:10.503Z","dependency_job_id":"c57d0a63-180d-4fef-a94e-25a9dd02296c","html_url":"https://github.com/dvsku/libnetwrk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dvsku/libnetwrk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsku%2Flibnetwrk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsku%2Flibnetwrk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsku%2Flibnetwrk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsku%2Flibnetwrk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvsku","download_url":"https://codeload.github.com/dvsku/libnetwrk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsku%2Flibnetwrk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"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":["cpp","cpp20","cross-platform","dvsku","dvsku-libnetwrk","libnetwrk","networking","networking-library"],"created_at":"2026-01-16T09:28:16.561Z","updated_at":"2026-01-16T09:28:16.630Z","avatar_url":"https://github.com/dvsku.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003elibnetwrk\u003c/h1\u003e\n    \u003cp\u003e\n      \u003cspan\u003e\n        \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/dvsku/libnetwrk/build-windows.yml?branch=main\u0026label=windows\"/\u003e\n      \u003c/span\u003e\n      \u003cspan\u003e\n        \u003cimg src=\"https://img.shields.io/github/actions/workflow/status/dvsku/libnetwrk/build-linux.yml?branch=main\u0026label=linux\"/\u003e\n      \u003c/span\u003e\n      \u003cspan\u003e\n        \u003cimg src=\"https://img.shields.io/github/downloads/dvsku/libnetwrk/total\"/\u003e\n      \u003c/span\u003e\n      \u003cspan\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/dvsku/libnetwrk\"/\u003e\n      \u003c/span\u003e\n  \u003c/p\u003e\n  \u003cp\u003e\n    Header-only cross-platform networking library.\n  \u003c/p\u003e\n\u003c/div\u003e\u003c/br\u003e\n\n## About\nBased on \u003ca href=\"https://www.youtube.com/@javidx9\"\u003ejavidx9\u003c/a\u003e's work with networking.\u003cbr/\u003e Recommended for use on small personal projects as it's not heavily tested.\n\n## Dependencies\n- ASIO 1.30.2 (embedded)\n\n## Requirements\n- c++20\n- compiler support for concepts and coroutines\n\n## Tested compiler support\n- MSVC 14.30 / Visual Studio 2022 17.0\n- GCC 10.5 with -fconcepts and -fcoroutines\n\n## Usage\n### CMake\nlibnetwrk TARGET is provided as an INTERFACE that sets up compile flags, definitions and include directories.\n\n- Add libnetwrk via ``ADD_SUBDIRECTORY`` or ``FetchContent``\n- Use ``LINK_LIBRARIES(libnetwrk)`` or ``TARGET_LINK_LIBRARIES(your_target PRIVATE|PUBLIC libnetwrk)``\n- Include ``libnetwrk.hpp``\n\n### Manual\n...\n\n## Limitations\n- currently only supports TCP\n- ``std::size_t`` clamped to ``uint32_t`` to enable architecture independent serialization/deserialization of STL containers\n\n## Usage examples\n### Making a custom object serializeable\n\n```\nvoid serialize(libnetwrk::dynamic_buffer\u0026 buffer) const {\n    ...\n}\n\nvoid deserialize(libnetwrk::dynamic_buffer\u0026 buffer) {\n    ...\n}\n```\nTo make an object serializable you need to add and implement these functions. \u003c/br\u003e\n\n```\n#include \"libnetwrk.hpp\"\n\nstruct object {\n    std::string string_1;\n  \n    void serialize(libnetwrk::dynamic_buffer\u0026 buffer) const {\n        buffer \u003c\u003c string_1;\n    }\n  \n    void deserialize(libnetwrk::dynamic_buffer\u0026 buffer) {\n        buffer \u003e\u003e string_1;\n    }\n}\n\nstruct derived_object : object {\n    std::string string_2;\n  \n    void serialize(libnetwrk::dynamic_buffer\u0026 buffer) const {\n        object::serialize(buffer);\n        buffer \u003c\u003c string_2;\n    }\n  \n    void deserialize(libnetwrk::dynamic_buffer\u0026 buffer) {\n        object::deserialize(buffer);\n        buffer \u003e\u003e string_2;\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvsku%2Flibnetwrk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvsku%2Flibnetwrk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvsku%2Flibnetwrk/lists"}