help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Procedures and functions] Reference for unit 'Sockets' (#rtl)

HostToNet

Convert a host address to a network address

Declaration

Source position: line 0

function HostToNet(

  Host: in_addr

):in_addr;

function HostToNet(

  Host: LongInt

):LongInt;

Description

HostToNet converts a host address to a network 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

NetToHost

  

Convert a network address to a host 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

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505