I would like to know how to manage read and write buffers in a many clients / one server architecture.
My server is asynchronous.
My exact questions are:
- Do I need to have one read buffer per client connected, or one for the server globally ? Why ? (to avoid data crushing if multiple clients write to the server simultaneously for example).
- Same question with write buffer.
- If my server wasn't asynchronous, would it change any of the answers ?
Thank you in advance for your responses,
Flo