{"id":13644254,"url":"https://github.com/xtaci/libkcp","last_synced_at":"2025-04-05T16:11:13.258Z","repository":{"id":9963935,"uuid":"63000886","full_name":"xtaci/libkcp","owner":"xtaci","description":"FEC enhanced KCP session library for iOS/Android in C++","archived":false,"fork":false,"pushed_at":"2024-08-02T05:14:41.000Z","size":350,"stargazers_count":316,"open_issues_count":5,"forks_count":121,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-03-29T15:11:24.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xtaci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-07-10T13:51:44.000Z","updated_at":"2025-03-25T14:20:46.000Z","dependencies_parsed_at":"2025-01-05T16:03:16.293Z","dependency_job_id":"534a9664-d3f8-4e30-a983-4427bee1a12e","html_url":"https://github.com/xtaci/libkcp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtaci%2Flibkcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtaci%2Flibkcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtaci%2Flibkcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtaci%2Flibkcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtaci","download_url":"https://codeload.github.com/xtaci/libkcp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361695,"owners_count":20926643,"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":[],"created_at":"2024-08-02T01:01:59.842Z","updated_at":"2025-04-05T16:11:13.230Z","avatar_url":"https://github.com/xtaci.png","language":"C","readme":"# ***libkcp***\n\n[![Powered][1]][2] [![Created At][5]][6]\n\n[1]: https://img.shields.io/badge/KCP-Powered-blue.svg\n[2]: https://github.com/skywind3000/kcp\n[3]: https://travis-ci.org/xtaci/libkcp.svg?branch=master\n[4]: https://travis-ci.org/xtaci/libkcp\n[5]: https://img.shields.io/github/created-at/xtaci/kcp-go\n[6]: https://img.shields.io/github/created-at/xtaci/kcp-go\n\nFEC enhanced KCP client session library for iOS/Android, compatible with [kcp-go](https://github.com/xtaci/kcp-go).    \n\n\u003cimg src=\"logo.png\" alt=\"libkcp\" height=\"300px\" /\u003e\n\n## ***Features***\n1. Optimized for ***Online Games***.\n1. Stream based interface, you can easily switch from your TCP based protocol to libkcp or dualstack.\n1. [FEC(Forward Error Correction)](https://en.wikipedia.org/wiki/Forward_error_correction) Support with [Reed-Solomon Codes](https://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction)\n\n## ***Usage***\nlibkcp has been designed as a ***Frame-Driven*** library, the main loop was supposed as:       \n```\nGameInit()\nNetworkInit()\nWhile (!isGameOver) Do      // e.g:  A 30FPS Game\n       LibKCP.Read()\n       LibKCP.Write()\n       LibKCP.Update()\n       Game.Logic()\n       Game.Render()\n       Wait(33ms)   // clock\nEnd\n```\n\nThe ```Read/Write/Update``` functions of libkcp are ***guaranteed*** to be ***non-blocking***.       \nPlease read ```kcp_test.cpp fec_test.cpp``` for library usage.        \n\n## ***Demo***\nstart echo server(golang)       \n```\n$go get github.com/xtaci/kcp-go\n$go run kcpserver.go\n```   \ncompile and run libkcp(Best with CLion), and watch output.      \n\n## ***Caveats***\n1. Packet level encryption has not been implemented yet.\n   \n## ***Troubleshooting***\n1. C++11 is required for compiling.\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtaci%2Flibkcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtaci%2Flibkcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtaci%2Flibkcp/lists"}