bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #27575] socket examples say INADDR_LOCALHOST rather than INADDR_LOO


From: Scott McPeak
Subject: [bug #27575] socket examples say INADDR_LOCALHOST rather than INADDR_LOOPBACK
Date: Thu, 01 Oct 2009 21:09:27 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3

URL:
  <http://savannah.gnu.org/bugs/?27575>

                 Summary: socket examples say INADDR_LOCALHOST rather than
INADDR_LOOPBACK
                 Project: Guile
            Submitted by: smcpeak
            Submitted on: Thu 01 Oct 2009 09:09:26 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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)

Original report:

http://lists.gnu.org/archive/html/bug-guile/2009-09/msg00021.html





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27575>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]