I am making a program which requires connecting to multiple networks on multiple threads. in my main function, I called WSAStartup() and succesfully connected to a network. I created a new thread, and in the function that new thread will execute, I called WSAStarup() again, but it seems to not have been called since a simple call to 'gethostbyname()' returns with a '10093' error. The return value of that call to WSAStartup() was '0'. meaning it started succesfully, but it does not seem so.
Any help and/or ideas?