Sockets

To perform networking on a POSIX-compliant operating system, you need to leverage the POSIX sockets API. The socket programming interface provided by POSIX is a good example of a set of APIs that is provided by neither C nor C++, but is needed for networking on POSIX-compliant operating systems.

In Chapter 10, Programming POSIX Sockets Using C++, we will discuss how to perform networking using the POSIX sockets API, while leveraging C++. Specifically, we will show how C++ can be leveraged to simplify the implementation of socket-based networking, and provide several examples of how to perform networking.