kcp icon indicating copy to clipboard operation
kcp copied to clipboard

:zap: KCP - A Fast and Reliable ARQ Protocol

Results 129 kcp issues
Sort by recently updated
recently updated
newest added

请教一个问题:在ikcp_input中,最后进行了拥塞窗口的更新: if (_itimediff(kcp->snd_una, prev_una) > 0) { if (kcp->cwnd < kcp->rmt_wnd) { IUINT32 mss = kcp->mss; if (kcp->cwnd < kcp->ssthresh) { kcp->cwnd++; kcp->incr += mss; /* 可以发送的最大数据量 */ } else...

从debug来看, hr = handler->rescData(buffer, 2000);有收到数据, 但是hr = ikcp_recv(kcp1, buffer, 2000);的值为-1 ![image](https://user-images.githubusercontent.com/72648268/155080119-1e220c94-2d94-478c-8cfb-ac837c8a0923.png) ![image](https://user-images.githubusercontent.com/72648268/155080231-6b0b9534-6e77-4c4b-a011-7db1947c34f4.png) 服务端代码如下: `int main() { printf("ikcpserver"); ikcpcb *kcp1 = ikcp_create(0x11223344, (void *) 0); handler = new UDPServerHandler(); handler->initSocket(); kcp1->output...

那种只有几kram的单片机,,, _Originally posted by @gancuinoodle in https://github.com/skywind3000/kcp/issues/334#issuecomment-986625846_

Is 'KCP' an abbreviation? If yes, how it's explained?

https://github.com/skywind3000/kcp/issues/230#issuecomment-541292962 "KCP 任何情况下都不会丢包,自动重传协议本身就是干这个的。" 怎样在ikcp_waitsnd 中累积到一定数据的时候,或重传次数到达一定的阈值时,直接丢包?还是kcp内部不会丢包,只能在上层发现ikcp_waitsnd中累积过多,直接将要送入kcp的数据包丢掉?

基于asio的Modern C++封装,提供asio::tcp类似的API: async_accept,async_read,async_read_some,async_connect,方便二次开发。

moon cat I will look for you all the time你明白我要的不多,为什么给了希望又如此残忍

读代码的时候发现 ts_recent / ts_lastack 没地方在用,是为了兼容旧的应用还是有别的用途?