Java – increase the server / client buffer size in kryonet

How to increase the buffer size in the server / client constructor in kryonet?

Solution

Pass a value greater than the default value to the overloaded constructor

New client() is equivalent to new client (81922048)

The new server () is equivalent to the new server (163842048)

For details, see kryonet JavaDocs

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>