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

incompatibility with C++ KCP implementation #6

Open
DefinitlyEvil opened this issue Sep 11, 2018 · 2 comments
Open

incompatibility with C++ KCP implementation #6

DefinitlyEvil opened this issue Sep 11, 2018 · 2 comments

Comments

@DefinitlyEvil
Copy link

C++ KCP implementation used little-endian while encoding but this version used big-endian encoding when serializing packets.
I know it's not an issue but it's good to post it somewhere so everyone will know.
thx! ;)

Sincerely,
Tobias.

@RTunSole
Copy link

change it in output method:ByteBuffer.wrap(bytes).order(ByteOrder.LITTLE_ENDIAN)

@DefinitlyEvil
Copy link
Author

the integers are in LE mode. they must be encoded separatedly.

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