[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: socket examples say INADDR_LOCALHOST rather than INADDR_LOOPBACK
From: |
Neil Jerram |
Subject: |
Re: socket examples say INADDR_LOCALHOST rather than INADDR_LOOPBACK |
Date: |
Thu, 01 Oct 2009 22:30:37 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Scott McPeak <address@hidden> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: socket examples say INADDR_LOCALHOST rather than INADDR_LOOPBACK,
Neil Jerram <=