aceld / zinx

A lightweight concurrent server framework based on Golang.
https://github.com/aceld/zinx/wiki
MIT License
7.05k stars 1.21k forks source link

增加kcp-go的 fec配置 #322

Closed luodaoyi closed 4 months ago

luodaoyi commented 4 months ago

虽然kcp对丢包超时等情况做了大量优化, 但是在一些实时较高的场景(比如游戏)还是难以接受。此时fec就可以和kcp一起使用,利用fec的纠错机制进一步减少重传

相关阅读:

https://vearne.cc/archives/39331 https://github.com/xtaci/kcp-go/blob/master/fec_test.go https://github.com/wangyu-/UDPspeeder/blob/branch_libev/doc/README.zh-cn.md

https://segmentfault.com/a/1190000041690310

luodaoyi commented 4 months ago

兼容Fec的 Client:

IOS / Android: https://github.com/xtaci/libkcp

windows msvc: https://github.com/luodaoyi/libkcp-msvc

aceld commented 4 months ago

@luodaoyi 感谢提交PR!