{"id":21187869,"url":"https://github.com/lukasbanana/mercuriuslib","last_synced_at":"2025-08-05T08:18:20.404Z","repository":{"id":85019565,"uuid":"89097810","full_name":"LukasBanana/MercuriusLib","owner":"LukasBanana","description":"Simple Networking Library for C++11","archived":false,"fork":false,"pushed_at":"2018-09-24T14:12:56.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T20:29:53.934Z","etag":null,"topics":["gaming-software","library","network","network-programming","socket"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LukasBanana.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-04-22T20:40:08.000Z","updated_at":"2018-12-29T15:13:44.000Z","dependencies_parsed_at":"2023-03-13T04:04:16.216Z","dependency_job_id":null,"html_url":"https://github.com/LukasBanana/MercuriusLib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LukasBanana/MercuriusLib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasBanana%2FMercuriusLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasBanana%2FMercuriusLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasBanana%2FMercuriusLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasBanana%2FMercuriusLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LukasBanana","download_url":"https://codeload.github.com/LukasBanana/MercuriusLib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LukasBanana%2FMercuriusLib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268859644,"owners_count":24318994,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["gaming-software","library","network","network-programming","socket"],"created_at":"2024-11-20T18:41:31.588Z","updated_at":"2025-08-05T08:18:20.367Z","avatar_url":"https://github.com/LukasBanana.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"MercuriusLib - Simple Networking Library for modern C++\n=======================================================\n\nOverview\n--------\n\n- **Version**: 1.00 Alpha\n- **License**: [3-Clause BSD License](https://github.com/LukasBanana/MercuriusLib/blob/master/LICENSE.txt)\n\n\nExample\n-------\n\nThis is an example about the mesh generator:\n```cpp\n#include \u003cMerc/Merc.h\u003e\n#include \u003ciostream\u003e\n\nint main()\n{\n    try\n    {\n        Mc::NetworkSystem net;\n        \n        // Send HTTP GET request to server\n        auto addrGoogle = Mc::IPAddress::QueryAddressesFromHost(\"www.google.com\");\n        if (!addrGoogle.empty())\n        {\n            auto\u0026 addr = addrGoogle.front();\n            addr-\u003ePort(80);\n            \n            auto sock = Mc::TCPSocket::Make(Mc::AddressFamily::IPv4);\n            \n            sock-\u003eConnect(*addr);\n            \n            std::string getRequest = \"GET /index.html HTTP/1.1\\r\\nHost: www.google.com\\r\\n\\r\\n\";\n            sock-\u003eSend(getRequest.c_str(), static_cast\u003cint\u003e(getRequest.size() + 1));\n            \n            char getResponse[513];\n            while (true)\n            {\n                auto len = sock-\u003eRecv(getResponse, 512);\n                if (len \u003e 0)\n                {\n                    getResponse[len] = 0;\n                    std::cout \u003c\u003c getResponse;\n                }\n                else\n                    break;\n            }\n        }\n\t}\n\tcatch (const std::exception\u0026 e)\n\t{\n\t\tstd::cerr \u003c\u003c e.what() \u003c\u003c std::endl;\n\t}\n}\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasbanana%2Fmercuriuslib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukasbanana%2Fmercuriuslib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasbanana%2Fmercuriuslib/lists"}