Change sendto to return bytes sent successfully