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

Does this sever applicable good for client write in c/c++ #101

Closed baiydavid closed 8 years ago

baiydavid commented 8 years ago

if client is written in c/c++, and tcp body is byte[] in binary bytes, this server can work well?? thanks.

baiydavid commented 8 years ago

KryoNet makes the assumptions that it will only be used for client/server architectures and that KryoNet will be used on both sides of the network. Because KryoNet solves a specific problem, the KryoNet API can do so very elegantly.

what does this mean when client is written in c language

NathanSweet commented 8 years ago

The protocol is encoded in Java class files. It will be very difficult to read Kryo data from another language, unless you send only simply data types.

On Fri, Jul 24, 2015 at 11:12 AM, baiydavid notifications@github.com wrote:

KryoNet makes the assumptions that it will only be used for client/server architectures and that KryoNet will be used on both sides of the network. Because KryoNet solves a specific problem, the KryoNet API can do so very elegantly.

what does this mean when client is written in c language

— Reply to this email directly or view it on GitHub https://github.com/EsotericSoftware/kryonet/issues/101#issuecomment-124451024 .

baiydavid commented 8 years ago

I want to find a TCP Server package, easy to use, send byte stream in both server and client, and recv the data according to user define structure with my own codes.
Do you have any suggestions? Thanks.

NathanSweet commented 8 years ago

Please use the mailing list for discussion, this is an issue tracker.