To cut a long story short, I forsee some problems in my program in which I use Winsock (1.1 at the moment), and multiple threads, multiple functions. I've mapped out all the possible scenarios and what I need to do in each one, and I'd have the best option nailed down if someone more experienced with Winsock could answer these questions:
1) Does Windows require an internet connection to declare a WSADATA object or call WSAStartup()?
2) The actual server part of my app may be started and stopped more than once. Can WSAStartup() be called more than once? Or should I wait until the application is going to close completely to call WSACleanup()?
That should be all. From what I know about scope in C, I can figure out the rest of my problems, but I'm having a hard time finding information detailed enough to answer the above, so I'd really appreciate it if someone here can help.
Thanks in advance,