You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Unix dup() function duplicates a file handle, and of course also works for sockets.
Under Winsock 2, you can do the same thing with WSADuplicateSocket().
It’s a bit more involved, but the WSADuplicateSocket() documentation in MSDN
has a good step-by-step example showing how to use this mechanism.
see _dup
dup() under POSIX can duplicate file and socket descriptor
but under WIN32 can only duplicate file descriptor.
see Winsock Programmer’s FAQ - BSD Sockets Compatibility
see WSADuplicateSocket()
The text was updated successfully, but these errors were encountered: