Sign in Join
FPDoc Onlineexperiment

htons function

In unit Sockets

Convert short integer from host ordered to network ordered.

Declaration

pascal
function htons(host: Word): Word

Description

htons makes sure that the bytes in host are ordered in the correct way for sending over the network and returns the correctly ordered result.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.