Unit 'Sockets' Package
[Overview][Constants][Types][Procedures and functions][Index] [#rtl]

NetToHost

Convert a network address to a host address.

Declaration

Source position: socketsh.inc line 200

function NetToHost(

  Net: in_addr

):in_addr;

function NetToHost(

  Net: LongInt

):LongInt;

Description

NetToHost converts a network address to a host address. It takes care of endianness of the host machine. The address can be specified as a dotted quad or as a longint.

Errors

None.

See also

HostToNet

  

Convert a host address to a network address.

NToHS

  

Convert short integer from network ordered to host ordered.

HToNS

  

Convert short integer from host ordered to network ordered.

ShortHostToNet

  

Convert a host port number to a network port number.

ShortNetToHost

  

Convert a network port number to a host port number.


Documentation generated on: Jul 24 2023