Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Address families z/OS Communications Server: IPv6 Network and Application Design Guide SC27-3663-00 |
||||||||||||||||||||||||||||||||||||||||
Most socket functions require a socket descriptor and a generic socket address structure called a sockaddr. The exact format of the sockaddr structure depends on the address family. For IPv4 sockets, the sockaddr structure is sockaddr_in. For IPv6, the sockaddr structure sockaddr_in6 is used. The following socket functions have a sockaddr structure as one
of their parameters:
The sockaddr structure that is used in these functions must be the proper structure for the socket family. For IPv4 (AF_INET), the sockaddr (sockaddr_in) contains the information
shown in Table 1.
For IPv6 (AF_INET6), the sockaddr (sockaddr_in6) contains additional
information. Also, note that the IP address for IPv6 is 16 bytes long
instead of 4 bytes long as in IPv4.
|
Copyright IBM Corporation 1990, 2014
|