how to handle multiple file transfers?

Using POSIX threads, how can we handle multiple file transfers?

Sure, we can handle simple client requests like connection or logging in with information and verifying with MySQL but how do we handle multiple file transfers?

Let's say the upload rate of the client 1 is abnormally slow, and it takes a whole 2 minutes to process a picture upload, do we make client 2 wait or is there a better way to handle this? For example, more threads or what?
Have your network handler in it's own thread. Then you just poll each connection for data and move it internally to a processing thread. The network thread should easily be able to handler many connections.
Topic archived. No new replies allowed.