Winsock Init
I''m currently implementing networking code using Winsock. What I have is a class which calls WSAStartup in its constructor and WSACleanup in the destructor.
Now I''m creating client and server apps. My question is that if I was to create a client and server object in the same process, but each one creating one of the aforementioned classes, will I run into problems with Winsock being shutdown, say if the client was destroyed, but the server kept on running. In other words are the calls to WSA* ref counted for an app?
James
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement