-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
求教修改数据协议-数据长度后,客户端不能正确读取长度的问题 #9
Comments
问题出在kcp,数据包过大,超过了默认的1400字节,把MTU放大后,依然只能读取1400 |
sorry刚看到,kcp的设置是根据自己的需求修改的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
咱们的服务端测试都ok,DataLen=4
您的Unity客户端做了如下修改
var bID = temp.GetRange(0, 4);
bID.Reverse();
var len = BitConverter.ToUInt32(bID.ToArray(), 0);
读出来的值超大,求教问题所在
The text was updated successfully, but these errors were encountered: