[Top][All Lists]

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

doc ipv4 address conversions

From: Kevin Ryde
Subject: doc ipv4 address conversions
Date: Wed, 10 Sep 2003 10:23:53 +1000
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

I think these could be described under the ipv4 address section,
rather than just under "bind".

        * posix.texi (Network Address Conversion): Describe numeric
        representation in Guile.  Add INADDR_LOOPBACK and INADDR_BROADCAST,
        add commented-out INADDR_NONE.

Describing the number format doesn't give anything new away, since the
examples have implicitly shown it.

IPv4 Address Conversion

An IPv4 Internet address is a 4-byte value, represented in Guile as an
integer in network byte order (meaning the first byte is the most
significant in the number).

     The address of the local host using the loopback device, ie.

     The broadcast address on the local network.

@c  INADDR_NONE is defined in the code, but serves no purpose.
@c  inet_addr() returns it as an error indication, but that function
@c  isn't provided, for the good reason that inet_aton() does the same
@c  job and gives an unambiguous error indication.  (INADDR_NONE is a
@c  valid 4-byte value, in glibc it's the same as INADDR_BROADCAST.)
@c  @defvar INADDR_NONE
@c  No address.
@c  @end defvar

reply via email to

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