Fixed the send

md5sum a.out
8ad2f14d5f710e2cc7d2e3e835abc0cc  a.out

Forgot to check if the bytes were all sent or not.