Function Macro

GLibhtons

Declaration

#define g_htons (
  val
)

Description

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

This function is not directly available to language bindings.

Parameters

val

Type: -

A 16-bit integer value in host byte order.