A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/007049.html below:

[Python-Dev] [patch #100927] Fix for broken gethostbyname("0")

[Python-Dev] [patch #100927] Fix for broken gethostbyname("0") [Python-Dev] [patch #100927] Fix for broken gethostbyname("0")Fredrik Lundh Fredrik Lundh" <effbot@telia.com
Fri, 21 Jul 2000 00:21:08 +0200
this patch by Pekka Pessi adds support for "0" and "-1"
to gethostbyname:

    "0" (a string, not an integer) is the same thing as ""
    (INADDR_ANY)

    "-1" is the same thing as "<broadcast>".
    (INADDR_BROADCAST)

Pekka hasn't followed up on my comments on the patch
page, so I thought I'd take the question to this forum in-
stead:

    -- why is gethostbyname "broken" if it doesn't
       support the magic strings "0" and "-1"?

I'm tempted to reject the patch, but I'm probably missing
something here...

</F>




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4