OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [ecos-2.0/] [packages/] [net/] [tcpip/] [v2_0/] [doc/] [inet_addr.html] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1254 phoenix
<html>
2
<body>
3
<pre>
4
NAME
5
       inet_aton, inet_addr, inet_ntoa -  Internet  address
6
       manipulation routines
7
 
8
SYNOPSIS
9
       #include &lt;network.h&gt;
10
 
11
       int inet_aton(const char *cp, struct in_addr *inp);
12
 
13
       unsigned long int inet_addr(const char *cp);
14
 
15
       char *inet_ntoa(struct in_addr in);
16
 
17
DESCRIPTION
18
       inet_aton() converts the Internet host address cp from the
19
       standard numbers-and-dots notation into  binary  data  and
20
       stores  it  in the structure that inp points to. inet_aton
21
       returns nonzero if the address is valid, zero if not.
22
 
23
       The  inet_addr()  function  converts  the  Internet   host
24
       address cp from numbers-and-dots notation into binary data
25
       in  network  byte  order.   If  the  input   is   invalid,
26
       INADDR_NONE (usually -1) is returned.  This is an obsolete
27
       interface to inet_aton, described immediately above; it is
28
       obsolete  because -1 is a valid address (255.255.255.255),
29
       and inet_aton provides a cleaner  way  to  indicate  error
30
       return.
31
 
32
       The   inet_ntoa()  function  converts  the  Internet  host
33
       address in given in network byte  order  to  a  string  in
34
       standard   numbers-and-dots   notation.    The  string  is
35
       returned in a statically allocated  buffer,  which  subse­
36
       quent calls will overwrite.
37
 
38
</pre>
39
</body>
40
</html>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.