__del__ pattern?

Jorgen Grahn jgrahn-nntq at algonet.se
Sun Aug 21 04:22:54 EDT 2005


On Tue, 16 Aug 2005 08:03:58 -0400, Peter Hansen <peter at engcorp.com> wrote:
> Tom Anderson wrote:
>> On Mon, 15 Aug 2005, Peter Hansen wrote:
>>> Using '' instead of 'localhost' means bind to *all* interfaces, not 
>>> just the loopback one.
>> 
>> Doesn't '' mean 'bind to the *default* interface'?
>
> What does "default" mean, and is that definition in conflict with what I 
> said?
>
> The docs say it means INADDR_ANY.  They don't say what that means, so 
> you'd have to read up on the C socket calls to learn more.
>
> Or some helpful soul will clarify for the class... :-)

INADDR_ANY means "every network interface you can find". This includes the
local loopback and all physical and logical network interfaces.

/Jorgen

-- 
  // Jorgen Grahn <jgrahn@       Ph'nglui mglw'nafh Cthulhu
\X/                algonet.se>   R'lyeh wgah'nagl fhtagn!



More information about the Python-list mailing list