htons

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


unsigned short htons (unsigned short shortValue);


Function Description

This function converts a short value from host byte order to network byte order.


Parameters

  • shortValue
    The value to convert.


Returns

  • (unsigned short)
    The converted value.


Table of Contents >> Programmer's Reference