Hello
I am developing an application which uses sockets. the program is simply a file transfer program. there is a server which is able to send and receive files. also there are clients.
the client, however, is able to download files sequentially or parallel. this means client arranges a downloading option with checkbox, for example. if it is set to sequential, selected files to be downloaded are going to be performed one by one. but if parallel option is selected, desired files must be downloaded in parallel, simultaneously.
I think there is nothing special about the server. it only accepts users and operates what they request. the problem is on client part. because every client must have multiple threads, client side must be able to handle this. I could not build a structure to accomplish.
the question is, that is the proper way to do this I think, creating a client thread in main thread and for parallel option, again creating a new thread in this thread will be ok. but it seems a little complex.
there are some problems: how to copy sockets do I have to connect for every parallel thread in order to use server operations
hot to manage these threads on client thread will be a problem in this
I know it is a little long description but I hope it is clear
thanks in advance...