ikcp_recv 并不需要接受 len 参数,因为已经约定buffer必须满足peeksize了 如果接受len参数,会导致重复调用2次peeksize,外层代码调用一次准备buffer,ikcp_recv里面再调用一次做比较? Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment...
ikcp_input 返回0 ,ikcp_recv 一直返回-1if (seg->sn == kcp->rcv_nxt && kcp->nrcv_que ...
把接收到的数据ikcp_input输入到kcp层,并且调用ikcp_update,这样客户端才会返回ack包给服务器
skywind3000/kcpPublic NotificationsYou must be signed in to change notification settings Fork2.5k Star15.7k Code Issues173 Pull requests11 Actions Projects Wiki Security Insights Additional navigation options New issue Closed Description zhaokaixs
input 返回0 ,ikcp_recv 一直返回-1if (seg->sn == kcp->rcv_nxt && kcp->nrcv_que < kcp...
KCP ikcp_recv APi returns -1kcp is not thread-safe, and should be guarded by a mutex....