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


Parameter values returned to the application

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

NAME
Specifies the IPv4 socket address structure returned by the call.
FAMILY
A halfword binary field containing the IPv4 addressing family. The call always returns the value decimal 2, indicating AF_INET.
PORT
A halfword binary field set to the port number bound to this socket. If the socket is not bound, 0 is returned.
IP-ADDRESS
A fullword binary field set to the 32-bit IP address of the local host machine.
RESERVED
Specifies 8 bytes of binary zeros. This field is required but not used.
NAME
Specifies the IPv6 socket address structure returned by the call.
FAMILY
A halfword binary field containing the IPv6 addressing family. The call always returns the value decimal 19, indicating AF_INET6.
PORT
A halfword binary field set to the port number bound to this socket. If the socket is not bound, 0 is returned.
FLOWINFO
A fullword binary field specifying the traffic class and flow label. This value of this field is undefined.
IP-ADDRESS
A 16 byte binary field set to the 128-bit IPv6 IP address in network byte order, of the local host machine.
SCOPE-ID
A fullword binary field which identifies a set of interfaces as appropriate for the scope of the address carried in the IPv6-ADDRESS field. For a link scope IPv6-ADDRESS, SCOPE-ID contains the link index for the IPv6-ADDRESS. For all other address scopes, SCOPE-ID is undefined.
ERRNO
A fullword binary field. If RETCODE is negative, the field contains an error number. See Socket call error return codes for information about ERRNO return codes.
RETCODE
A fullword binary field that returns one of the following values:
Value
Description
0
Successful call.
-1
Check ERRNO for an error code.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014