send file reliably on udp sockets