Skip to content
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

Open
cool8868 opened this issue Dec 30, 2021 · 2 comments

Comments

@cool8868
Copy link

咱们的服务端测试都ok,DataLen=4
您的Unity客户端做了如下修改
var bID = temp.GetRange(0, 4);
bID.Reverse();
var len = BitConverter.ToUInt32(bID.ToArray(), 0);
读出来的值超大,求教问题所在

@cool8868
Copy link
Author

问题出在kcp,数据包过大,超过了默认的1400字节,把MTU放大后,依然只能读取1400

@byebyebruce
Copy link
Owner

sorry刚看到,kcp的设置是根据自己的需求修改的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants