bugGuile - Bugs: bug #27575, socket examples say...

 
 

bug #27575: socket examples say INADDR_LOCALHOST rather than INADDR_LOOPBACK

Submitted by:  Scott McPeak <smcpeak>
Submitted on:  Thu 01 Oct 2009 09:09:26 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 01 Oct 2009 09:09:26 PM UTC, original submission:

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

Scott McPeak <smcpeak>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ossau (Updated the item)
  • -unavailable- added by smcpeak (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 01 Oct 2009 09:32:16 PM UTCossauStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1