Function Macro

GLibhtons

Declaration

#define g_htons (
  val
)

Description

Converts a 16-bit integer value from host to network byte order.

Parameters

val none
 

A 16-bit integer value in host byte order.