Windows Sockets
Windows Sockets, or Winsock as it's commonly known, is Windows' implementation of BSD Sockets. As I mentioned earlier, BSD Sockets is an API that became the standard for Internet connectivity on UNIX systems in the 1980s. By providing API-level compatibility with Sockets, Windows makes porting UNIX network apps relatively easy. In addition to supporting functionality already present in BSD Sockets, Winsock also includes some Microsoft-specific enhancements. We'll talk about a few of these in just a moment.
Like BSD Sockets, Winsock supports both reliable (connection-oriented) communication and unreliable (connectionless) communication. These are known as stream and datagram connections, respectively. Winsock also supports scatter-gather ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access