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


GETNAMEINFO flags and returned information examples

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

Flag name Hexadecimal value
NI_NOFQDN 01
NI_NUMERICHOST 02
NI_NAMEREQD 04
NI_NUMERICSERV 08
NI_DGRAM 10
NI_NUMERICSCOPE 20
The following table shows returned results of information for all 63 possible combinations of flags (x'01' to x'3F') using a REXX socket call for GETNAMEINFO:
af      = 2                        /* AF_INET   */
portnum = 23                       /* port number */
ipaddr  = 10.x.y.z                 /* IP address   */
flags   = one or more flag name separated by blanks
  
Result  = SOCKET( 'GETNAMEINFO', af ipaddr portnum, flags)
Flags (in hexadecimal value) Result of returned information (return code, data1, data2)
01, 05, 21, or 25 0 mvshost telnet
02, 03, 22, or 23 0 10.x.y.z telnet
04, 20, or 24 0 mvshost.tcp.raleigh.ibm.com telnet
06, 07, 0E, 0F, 16, 17, 1E, 1F, 26, 27, 2E, 2F, 36, 37, 3E, or 3F 3 EAI_FAIL No recovery - resolver
08, 0C, 10, 14, 18, 1C, 28, 2C, 30, 34, 38, or 3C 0 mvshost.tcp.raleigh.ibm.com 23
09, 0D, 11, 15, 19, 1D, 29, 2D, 31, 35, 39, or 3D 0 mvshost 23
0A, 0B, 18, 19, 1A, 1B, 2A, 2B, 32, 33, 3A, or 3B 0 10.x.y.z 23

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014