As part of a game I'm developing a server is receiving UDP packets from up to 8 players at around 18 packets per second. All these packets are received by one UDPclient on the server end. I'm wondering if UDP packets can merge the same as TCP packets. If not does the UDPclient just take one packet per frame from a queue, meaning I'll run into problems if the server is receiving more packets per second then the frame-rate?
This is using System.Net.Sockets.
if (ServerUDP != null)
{
if (ServerUDP.Available != 0)
{
IPEndPoint receiveEP = new IPEndPoint(IPAddress.Any, 0);
byte[] packetReceived = ServerUDP.Receive(ref receiveEP);
}
}