-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Portability issue in PowerPc #179
Comments
I also have this problem on armv5te architecture. It works perfect on armv7 (tested on a OpenPandora console and on a XE303C12 ARM Chromebook), but fails with "Server error -404" on my armv5te based GuruPlug Server. This is the program output: $ ./telegram -vvv This error keeps repeating until you press Ctrl+C. It would be great to increase portability... |
Probably no chances of making this code work on big-endian platform. There are too many places, that assume, that this is little-endian platform. Sorry. But if anybody wants too do it, I will merge changes. |
Hello,
I'm using the client on a PowerPc platform (Big Endian), but it doesn't start a session with the server (it disconnects immediately).
After inspecting the code, the problem appears to be that fragments of the responses are casted directly as integers (using the style : *(int *) (buffer + offset)), and also that integer arrays and variables are used as buffers (for example packet_buffer).
I tried to change these parts of the code, but I couldn't because they are almost everywhere: I only managed to send the first message (the nonce) of the protocol, but after the second the DC disconnects with a 4 bytes long response.
The text was updated successfully, but these errors were encountered: