Is Winsock thread-safe?
I remember reading somewhere that the basic Winsock 2 functions (not those Microsoft WSA-whatevers) are not thread safe. This doesn't make sense though, because Winsock 2 is a DLL file, and to be able to be accessed by multiple programs it must be able to support simultaneous calls to the library functions. Is this true or am I missing something?
The same DLL doesn't get accessed by multiple processes as of the introduction of Windows 95. Each process gets its own copy of the writable data segment for the DLL. The "all processes share" model was the old Win16 model, which is luckily quite dead and buried by now ;-)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement