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


htons()

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

The htons() call translates a short integer from host byte order to network byte order.

#include <manifest.h>
#include <bsdtypes.h>
#include <in.h>
 
unsigned short htons(unsigned short a)
Parameter
Description
a
The unsigned short integer to be put into network byte order.

Return values

Returns the translated short integer.

Related calls

ntohs(), htonl(), ntohl()

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014