|
- NAME
- An IPv4 socket address structure that
contains the client’s socket address.
- FAMILY
- A halfword binary field specifying the IPv4 addressing family.
The call returns the value decimal 2 for AF_INET.
- PORT
- A halfword binary field that is set to the client’s port number.
- IP-ADDRESS
- A fullword binary field that is set to the 32-bit IPv4 IP address,
in network byte order, of the client’s host machine.
- RESERVED
- Specifies 8 bytes of binary zeros. This field is required, but
not used.
An IPv6 socket address structure that contains the
client’s socket address. - FAMILY
- A halfword binary field specifying the IPv6 addressing family.
For TCP/IP the value is decimal 19, indicating AF_INET6.
- PORT
- A halfword binary field that is set to the client’s port number.
- 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 that is set to the 128-bit IPv6 IP address,
in network-byte-order, of the client’s 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
- If the RETCODE value is positive,
the RETCODE value is the new socket number.
If the RETCODE value
is negative, check the ERRNO field for an error number.
- Value
- Description
- > 0
- Successful call.
- -1
- Check ERRNO for an error code.
|