EsotericSoftware / kryonet

TCP/UDP client/server library for Java, based on Kryo
BSD 3-Clause "New" or "Revised" License
1.81k stars 416 forks source link

Testing the server #99

Closed Veske closed 9 years ago

Veske commented 9 years ago

Is there a simple way to test a Kryonet TCP server? For instance with a tool like telnet.

For now if I try to use telnet to connect to my Kryonet TCP server, I am presented with some weird ASCII symbols when connection is accepted and when I sent a simple string to the server, Kryonet will throw a KryoNetException: Unable to read object larger than read buffer: 218762506 error.

I would like to test my server out when writing it with a simple tool before I write a separate client for it.

EDIT: I am trying to send simple string to the server like for instance: "hello". So I am not dealing with huge data here.