From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.bugs Subject: Re: socket examples say INADDR_LOCALHOST rather than INADDR_LOOPBACK Date: Thu, 01 Oct 2009 22:30:37 +0100 Message-ID: <87ocoq245e.fsf@ossau.uklinux.net> References: <4AC2A6AB.7090105@coverity.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1254432810 10010 80.91.229.12 (1 Oct 2009 21:33:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2009 21:33:30 +0000 (UTC) Cc: bug-guile@gnu.org To: Scott McPeak Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Oct 01 23:33:23 2009 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MtTH8-0005EC-OS for guile-bugs@m.gmane.org; Thu, 01 Oct 2009 23:33:23 +0200 Original-Received: from localhost ([127.0.0.1]:40190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtTH8-0000hN-5x for guile-bugs@m.gmane.org; Thu, 01 Oct 2009 17:33:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtTEs-0007sS-6y for bug-guile@gnu.org; Thu, 01 Oct 2009 17:31:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtTEn-0007rD-GR for bug-guile@gnu.org; Thu, 01 Oct 2009 17:31:01 -0400 Original-Received: from [199.232.76.173] (port=46265 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtTEn-0007r6-90 for bug-guile@gnu.org; Thu, 01 Oct 2009 17:30:57 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:41664) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtTEn-0003jl-0d for bug-guile@gnu.org; Thu, 01 Oct 2009 17:30:57 -0400 Original-Received: from arudy (host86-145-159-48.range86-145.btcentralplus.com [86.145.159.48]) by mail3.uklinux.net (Postfix) with ESMTP id 51CD81F6999; Thu, 1 Oct 2009 22:30:56 +0100 (BST) Original-Received: from arudy (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 82A6338023; Thu, 1 Oct 2009 22:30:37 +0100 (BST) In-Reply-To: <4AC2A6AB.7090105@coverity.com> (Scott McPeak's message of "Tue, 29 Sep 2009 17:30:35 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4332 Archived-At: Scott McPeak writes: > In the documentation for Guile's 'connect' call: > > http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Network-Sockets-and-Communication.html > > it gives examples: > > (connect sock AF_INET INADDR_LOCALHOST 23) > (connect sock (make-socket-address AF_INET INADDR_LOCALHOST 23)) > > However, the correct address is INADDR_LOOPBACK, not > INADDR_LOCALHOST. The former is not defined: > > guile> (inet-ntoa INADDR_LOOPBACK) > "127.0.0.1" > guile> (inet-ntoa INADDR_LOCALHOST) > [...] > ABORT: (unbound-variable) Thanks for the report, I've fixed these. Neil