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

there is sth wrong with data length of handshake #8

Open
Hommilist opened this issue Mar 10, 2017 · 1 comment
Open

there is sth wrong with data length of handshake #8

Hommilist opened this issue Mar 10, 2017 · 1 comment

Comments

@Hommilist
Copy link

when handshake return data back to the function PomeloPackage->public static Package decode(byte[] buffer)

buffer's length is 56133 bytes, first 10 byte is:
1, 0, -37, 65, 123, 34, 99, 111, 100, 101
but in this function I get result length=-9407, actually, data is back and useful, why I get the wrong result ?
seens in my case data length is 4bytes? please check the attacthment for detail.

and another issue is function PomeloClient->private void initData(JSONObject data) throws JSONException
line 312 like this:
this.protosVersion = (this.protos.has("version") ? this.protos.getInt("version") : 0);

in my case, version's value is "PjbxDUhHP9BfncghsFUXLg==", it is not an int type,and throw a ClasscastException, I have turn the protosVersion to be a String

look forward to your reply, thank you so much.
Uploading handshakedata.txt…

@Hommilist
Copy link
Author

handshakedata.txt

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

1 participant