Reliable file transfer over UDP using a custom header