Sign in Join
FPDoc Onlineexperiment

NToHs function

In unit Sockets

Convert short integer from network ordered to host ordered.

Declaration

pascal
function NToHs(Net: Word): Word

Description

ntohs makes sure that the bytes in Net, received from the network, are ordered in the correct way for handling by the host machine, and returns the correctly ordered result.

See also

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