Application with threads and a UPD listener
Posted on 2008-10-23
This is my first question in Experts-Exchange and I hope you can help me.
I'm starting with Visual Basic 2008. I've been programming using VB6 for 8 years.
I have to start a project I think it willhave three thread. One thread will listed a port using UDP. In this process it will received name of files of two types. The other two sockets have to been waiting to have files of a type to send it to another ip using UDP and delete the file from the collection.
I'd like you help with these problems:
1. I don't know how I can have a files collection which is shared with these three threads and how to manage it to avoid one thread bother another thread while it is using the file collection.
2. I don't know how create a thread which listen from a UPD port.