Game Development Reference
The code is the same as before with the difference that this time we use it in our main loop
and the socket doesn't block the loop from continuing with its execution.
Now that we know how to avoid blocking our main loop thread, let's look at some com-
mon networking problems and how to solve them.