mbed OS5

Fork of UIPEthernet by Zoltan Hudak

Embed: (wiki syntax)

« Back to documentation index

UIP conversion functions

UIP conversion functions
[The UIP TCP/IP stack]

These functions can be used for converting between different data formats used by UIP. More...

Functions

u16_t htons (u16_t val)
 Convert 16-bit quantity from host byte order to network byte order.

Detailed Description

These functions can be used for converting between different data formats used by UIP.


Function Documentation

u16_t htons ( u16_t  val )

Convert 16-bit quantity from host byte order to network byte order.

This function is primarily used for converting variables from host byte order to network byte order. For converting constants to network byte order, use the HTONS() macro instead.

Definition at line 2045 of file uip.c.