1) Making Java socket read/write length in 4 bytes as well; 2) Fixing endianness...