On Fri, 20 Nov 1998, Glynn Clements wrote:
> You have to specify either a *local* IP address, or the constant
> INADDR_ANY. E.g.
>
> Local.sin_family = AF_INET;
> Local.sin_addr.s_addr = INADDR_ANY;
I know that this is picking nits, so don't hate me, but INADDR_ANY should also
be subject to htonl(). :) Of course, since we know that it's zero, it doesn't
actually matter! But all of the other INADDR_ macros are in local machine
order, so it's for the sake of consistency.
For example, INADDR_LOOPBACK is 0x7f000001.
:)
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]