I understand that Winsock is used for networking on Windows OS’s, and BSD is for Mac OS and Unix. Is there some type of “universal” socket that works across any of the three operating systems mentioned? Or would a server have to have both sockets somehow incorporated into it for compatibility with clients of differing OS?
Share
Winsock and BSD Sockets are the names of two similar APIs that both implement the same thing: TCP/IP sockets, which in turn are endpoints of TCP connections or UDP datagram flows. Because the actual transport is defined by the TCP/IP RFCs, they interoperate. There is accordingly no necessity for a Winsock implementation on Unix, or a BSD Sockets implementation on Windows. Indeed the latter is what Winsock more or less is, modulo a few misunderstandings here and there.
In short, your question doesn’t really make sense.