z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Parameter values set by the application

z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
SC27-3660-00

SOC-FUNCTION
A 16-byte character field containing BIND2ADDRSEL. The field is left-justified and padded to the right with blanks.
S
A halfword binary number specifying the socket descriptor for the socket that is to be bound.
Requirement: The socket must be an AF_INET6 socket. The type can be SOCK_STREAM or SOCK_DGRAM.
NAME
Specifies the IPv6 socket address structure of the remote host that the socket will communicate with. The IPv6 socket structure must specify the following fields:
FAMILY
A halfword binary field specifying the IPv6 addressing family. This field must be set to the decimal value 19, indicating AF_INET6.
PORT
A halfword binary field. This field is ignored by BIND2ADDRSEL processing.
Tip: To determine the assigned port number, issue the GETSOCKNAME call after the BIND2ADDRSEL call completes.
FLOWINFO
A fullword binary field. This field is ignored by BIND2ADDRSEL processing.
IP-ADDRESS
A 16-byte binary field that is set to the 128-bit IPv6 IP address (network byte order) of the remote host that the socket will communicate with.
Rule: Specify an IPv4 address by using its IPv4-mapped IPv6 format.
SCOPE-ID
A fullword binary field that identifies a set of appropriate interfaces for the scope of the address that is specified in the IPv6-ADDRESS field. The value 0 indicates that the SCOPE-ID field does not identify the set of interfaces to be used.
Requirement: The SCOPE-ID value must be nonzero if the address is a link-local address. For all other address scopes, SCOPE-ID must be set to 0.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014