www.delorie.com/gnu/docs/glibc/libc_315.html   search  
 
Buy the book!


The GNU C Library

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

16.6.2 Host Addresses

Each computer on the Internet has one or more Internet addresses, numbers which identify that computer among all those on the Internet. Users typically write IPv4 numeric host addresses as sequences of four numbers, separated by periods, as in `128.52.46.32', and IPv6 numeric host addresses as sequences of up to eight numbers separated by colons, as in `5f03:1200:836f:c100::1'.

Each computer also has one or more host names, which are strings of words separated by periods, as in `mescaline.gnu.org'.

Programs that let the user specify a host typically accept both numeric addresses and host names. To open a connection a program needs a numeric address, and so must convert a host name to the numeric address it stands for.

16.6.2.1 Internet Host Addresses  What a host number consists of.
16.6.2.2 Host Address Data Type  Data type for a host number.
16.6.2.3 Host Address Functions  Functions to operate on them.
16.6.2.4 Host Names  Translating host names to host numbers.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003