[UDP library] Is it okay to have more UDP client users?
hello. nice to meet you.
Please refer to the picture above.
- Multiple clients connect to one computer.
- Client continues to connect.
- Clients are still connected and the number is increasing.
Q1) How many is possible?
Q2) If you keep connecting, it will be hard on the server computer, right?
For the maximum number of UDP clients exchanging with a server, please refer to those links I found:
Basically since UDP is connection-less, your server is only receiving and sending packets from clients and not maintaining connection states.
A UDP server could therefore send/receive traffic from a theoretically unlimited number of address/port combinations. The server code simply inspect incoming packets for source address and port, then sends any responses back that way.
So yes it will depend on your resources (network, hardware) and server code performance.
Thank you for good material. This is the answer I want.
Thank you very much for your reply.