SPowers wrote:Is it possible (and ok) to send packets outside of the thread as long as I have the socket handle?
Yes. It is both possible and okay. Some design implementations call for separating the sending and receiving sections for communications.
SPowers wrote:Also, can I call functions from within the socket thread to change data from a class that wasnt passed to the new thread?
AKA push items onto a vector from within the threaded socket loop.
You will probably want a queue, but yes. Just make sure you use critical sections when adding/removing items from the vector/queue.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week