Currently I have an local web application that is sending data to a local console application
When a user accesses the web page(I believe a thread will be started), user will enter the info and click send.
On clicking the send button, it will send the info using udpClient.Send(port ListenPort) to the application.
The console application, will listen on ListenPort and will receive the data using udpClient.Receive(), processes the data, and send it back to the web application using udpClient.Send(data,data_length,endpoint);
Let say 100 users accesses the web application and click the "Send" button at the same time, the console application will receive the requests one by one, and will not be fast to get all the requests. Most of the requests will be dropped by the sender(web application).
Is there anyway to make the console application able to process many data? udpClient.Receive() does not work on multi thread though, as multiple threads cannot listen to the same port at the same time.