z/OS Communications Server: IP CICS Sockets Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


TCP/IP network byte ordering convention

z/OS Communications Server: IP CICS Sockets Guide
SC27-3649-00

Ports and addresses are specified using the TCP/IP network byte ordering convention, which is known as big endian.

In a big endian system, the most significant byte comes first. By contrast, in a little endian system, the least significant byte comes first. MVS™ uses the big endian convention; because this is the same as the network convention, CICS® TCP/IP applications do not need to use any conversion routines, such as htonl, htons, ntohl, and ntohs.

Note: The socket interface does not handle differences in data byte ordering within application data. Sockets application writers must handle these differences themselves.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014