Why Kryonet sending Object take too much network space?

时间:2015-06-15 15:06:20

标签: java networking wireshark kryonet

I'm following a trivial sample official Kryonet page:

https://github.com/EsotericSoftware/kryonet

And in Server I only send an empty class object:

MyEmptyObject object = new MyEmptyObject();
server.sendToAllTCP(object);

But I'm worry about the size of the Object that is about 44 bytes when I've catched with Wireshark. That's really hurt the network bandwidth because I'm trying to use Kryonet to create a Server-client multiplayer game. Is there something wrong with my setup or Kryonet is not targeted to game.

0 个答案:

没有答案