* [bug #27575] socket examples say INADDR_LOCALHOST rather than INADDR_LOOPBACK
@ 2009-10-01 21:09 Scott McPeak
2009-10-01 21:32 ` Neil Jerram
0 siblings, 1 reply; 2+ messages in thread
From: Scott McPeak @ 2009-10-01 21:09 UTC (permalink / raw)
To: Scott McPeak, bug-guile
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [bug #27575] socket examples say INADDR_LOCALHOST rather than INADDR_LOOPBACK
2009-10-01 21:09 [bug #27575] socket examples say INADDR_LOCALHOST rather than INADDR_LOOPBACK Scott McPeak
@ 2009-10-01 21:32 ` Neil Jerram
0 siblings, 0 replies; 2+ messages in thread
From: Neil Jerram @ 2009-10-01 21:32 UTC (permalink / raw)
To: Neil Jerram, Scott McPeak, bug-guile
Update of bug #27575 (project guile):
Status: None => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27575>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-10-01 21:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-01 21:09 [bug #27575] socket examples say INADDR_LOCALHOST rather than INADDR_LOOPBACK Scott McPeak
2009-10-01 21:32 ` Neil Jerram
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).