Check the return value of send to ensure all bytes sent