From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: doc ipv4 address conversions Date: Wed, 10 Sep 2003 10:23:53 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87znhdqyna.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1063157989 2141 80.91.224.253 (10 Sep 2003 01:39:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2003 01:39:49 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Sep 10 03:39:48 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19wtxT-00038O-01 for ; Wed, 10 Sep 2003 03:39:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19wtx2-0005Bd-DO for guile-devel@m.gmane.org; Tue, 09 Sep 2003 21:39:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19wt7r-0007E8-G1 for guile-devel@gnu.org; Tue, 09 Sep 2003 20:46:27 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19wt5a-0005t9-BD for guile-devel@gnu.org; Tue, 09 Sep 2003 20:44:07 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 19wt33-0004AN-6q for guile-devel@gnu.org; Tue, 09 Sep 2003 20:41:29 -0400 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by mx20.gnu.org with esmtp (Exim 4.22) id 19wsmH-0004qp-7f for guile-devel@gnu.org; Tue, 09 Sep 2003 20:24:09 -0400 Original-Received: from mongrel.pacific.net.au (mongrel.pacific.net.au [61.8.0.107]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.4) with ESMTP id h8A0O3Bt017373 for ; Wed, 10 Sep 2003 10:24:03 +1000 Original-Received: from localhost (ppp111.dyn228.pacific.net.au [203.143.228.111]) by mongrel.pacific.net.au (8.12.3/8.12.3/Debian-6.4) with ESMTP id h8A0MN3G001076 for ; Wed, 10 Sep 2003 10:22:24 +1000 Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19wsm3-0000pX-00; Wed, 10 Sep 2003 10:23:55 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2777 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2777 I think these could be described under the ipv4 address section, rather than just under "bind". * posix.texi (Network Address Conversion): Describe numeric representation in Guile. Add INADDR_LOOPBACK and INADDR_BROADCAST, add commented-out INADDR_NONE. Describing the number format doesn't give anything new away, since the examples have implicitly shown it. IPv4 Address Conversion ....................... An IPv4 Internet address is a 4-byte value, represented in Guile as an integer in network byte order (meaning the first byte is the most significant in the number). - Variable: INADDR_LOOPBACK The address of the local host using the loopback device, ie. `127.0.0.1'. - Variable: INADDR_BROADCAST The broadcast address on the local network. @c INADDR_NONE is defined in the code, but serves no purpose. @c inet_addr() returns it as an error indication, but that function @c isn't provided, for the good reason that inet_aton() does the same @c job and gives an unambiguous error indication. (INADDR_NONE is a @c valid 4-byte value, in glibc it's the same as INADDR_BROADCAST.) @c @c @defvar INADDR_NONE @c No address. @c @end defvar _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel