
I’m making a file transfer application between (client-server) and have the tools I need but I’m a little confused about how to send the files. This is what I have:
- localListView – a tool that i can get the selectedItems which has fileName, path, current address, etc
- remoteListView – the same of the above
- Send method that takes Source path (filePath from the localListView) and DestinationPath (currAddress from remoteListView)
- The tools at the bottom of the picture is XPTable tool
They all works fine, but I just need a way to write a code to put the items I want to send in a queue. I also need a pointer that points to the current file which my application is sending. After the first file is sent successfully the pointer should go to the next file in the list and start the send method.
How do i do that?
Please if you have a good idea of how could this done either in c# or pseudo code or anything that would help me I would be thankful.
you can do it this way .. when you add the items to your list .. set each item tag to false .. that means you didn’t send it yet
then when you start sending the items .. it will check each item’s tag if false(not sent yet) you will send it and set its tag to True (item sent) and so on