when I test the two program in the same OS, i mean from a redhat 9 OS to a redhat 9 OS, It's ok. receivefile match sent file. But when I run receiver on a Redhat 9, and send file from a windows XP, the received file's size is randomized. May be that's where the problem is.