I thought of this crazy idea…
In my engine I want it possible to quickly send messages (UDP) but sometimes send a message while knowing that it will make it to the other end (TCP)…
Is it such a crazy idea to use both along with using a MultiCast socket for finding servers?
The only other way that I can think of is to use UDP and if the message is important, the end thing will send back acknowledgment… But the problem is how to detect when it the end thing doesn’t receive it? I thought of a timer, waiting for acknowledgment, but if the timer is too short than low internet could be classes as a failed message and if you make the timer too long then there would be lag…
What is the best idea to use?
And please don’t give me some sort of library… Say ‘reinventing the wheel’ as many times as you want but I’m still making this myself…