21.05.2025, 11:57
Each receive() call returns a single UDP message. You should call receive in a loop until the ending message is received. If that's not possible then set socket timeout to detect when no messages are left to receive.