ntohs

Name

ntohs -- convert values between host and network byte order

Synopsis

#include <netinet/in.h>

unsigned short int ntohs(unsigned short int netshort);

Description

The ntohs() function converts the short integer netshort from network byte order to host byte order.