Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this section, we take the case-conversion server and client programs shown in Section 57.3 and modify them to use datagram sockets in the AF_INET6 domain. We present these programs with a minimum of commentary, since their structure is similar to the earlier programs. The main differences in the new programs lie in the declaration and initialization of the IPv6 socket address structure, which we described in Section 59.4.
The client and server both employ the header file shown in Example 59-2. This header file defines the server’s port number and the maximum size of messages that the client and server can exchange.