Sign in Join
FPDoc Onlineexperiment

htonl function

In unit Sockets

Convert long integer from host ordered to network ordered.

Declaration

pascal
function htonl(host: Cardinal): Cardinal; overload

Description

htonl 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.