z/OS Communications Server: IPv6 Network and Application Design Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Passing ownership of sockets across applications using givesocket and takesocket APIs

z/OS Communications Server: IPv6 Network and Application Design Guide
SC27-3663-00

If your application is using the givesocket() and takesocket() APIs to pass ownership of a socket from one program to another, some changes are necessary for IPv6 enablement. The givesocket() and takesocket() APIs now support an address family of AF_INET6 for the socket being given or taken. The address family specified by the program performing the takesocket() must match the address family specified by the program that performed the givesocket(). As a result, care should be taken in coordinating the updates for IPv6 support across the partner applications performing givesocket and takesocket processing.
Table 1. givesocket() and takesocket() changes
Affected API call Required changes
givesocket() Specify AF_INET6 (Decimal 19) as the domain when giving an AF_INET6 socket.
getclientid() Specify AF_INET6 as the domain when dealing with an AF_INET6 socket.
takesocket() Specify AF_INET6 as the domain when taking an AF_INET6 socket.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014