kcp-2.0.0: a pluggable congestion control system that allows you to replace the built-in algorithm by installing callbacks without modifying KCP code.

This commit is contained in:
skywind3000
2026-05-15 07:43:46 +08:00
parent b6953419c9
commit 19459fa64d
2 changed files with 64 additions and 7 deletions

69
.gitignore vendored
View File

@@ -1,14 +1,69 @@
*.o
*
!*/
!*.*
*.obj
*.o
*.lib
*.ipch
*.pch
*.sdf
*.exe
*.a
*.p
*.dll
*.so
*.dylib
*.ncb
*.sdf
.tasks
.root
__pycache__
/build/*
/example/build/*
/gateway/build/*
/.vscode/*
/.idea/*
/.DS_Store
/.env
/build/*
/.vs/*
/.cache/*
/testing/*.xlsx
/testing/*.txt
/update.cmd
.vs
/visualstudio/Debug/*
/visualstudio/Release/*
/visualstudio/x64/*
/visualstudio/bbnet/*
/visualstudio/.vs/*
/visualstudio/bbnet.vcxproj.user
/x64/*
/Debug/*
/Release/*
/bbnet/*
*.vcxproj.user
/update.cmd
*.pcap
*.win32
*.linux
*.linux2
*.log
*.pyc
*.pyo
*.pyd
__pycache__/*
/session*.md
/skills/*
/.qoder/*
/.opencode/*
/.claude/*
/.iflow/*
nul

View File

@@ -22,6 +22,8 @@ KCP是一个快速可靠协议能以比 TCP 浪费 10%-20% 的带宽的代价
整个协议只有 ikcp.h, ikcp.c两个源文件可以方便的集成到用户自己的协议栈中。也许你实现了一个P2P或者某个基于 UDP的协议而缺乏一套完善的ARQ可靠协议实现那么简单的拷贝这两个文件到现有项目中稍微编写两行代码即可使用。
**注意KCP 目前更新到 V2增加了可插拔的流控算法机制可以不改协议的情况下替换流控算法老的 v1 足够稳定,我放到了 v1 这个 branch 里。**
# 技术特性