I have this Socket listener receiving data from the connected Socket clients. Each Socket client is stored inside a Client class with its own Buffer byte array and a few other properties.
I use an asynchronous receive method to receive the data, which then calls the callback method whenever data is received. So, my questions are...
Is there a possibility that data is received too quickly for the program to handle it efficiently?
And if so...
Is, locking the Buffer byte array, a good idea, in order to make sure the byte array is not being used before adding new data to it?