1

I need help: Send a list of bytes with UDP to a Server, o it works with signed/unsigned bytes

view story
linux-howto

http://stackoverflow.com – I have the following problem: I have to send a list of bytes from my android phone to an old server with udp. Because in java the bytes are signed, the server receive always to many bytes. Instead of 36 bytes he has 72 bytes. So, the interpretation of the bytes list is not work on serverside. A correct interpretation on the server is: 23 80 82 88 F2 F2 8C F7 B8 FC 9B 88 98 91 82 84 89 80 90 E5 AA 82 C0 83 AB BE 87 BC D3 C0 95 80 80 16 0D 0A 354242055139836 2013-19-02 17:16:18 47,41413 9,3971 879m 273,2° 0km/h My wrong result is: 32 33 38 30 38 32 38 38 46 32 46 32 38 43 46 37 42 38 46 43 3 (HowTos)