Multi-homed socket server?
Donn Cave
donn at u.washington.edu
Wed Oct 25 19:03:44 EDT 2000
Quoth Carsten Gaebler <cg at schlund.de>:
| Joshua Muskovitz wrote:
|> This is just a guess, so take it for what it is.
|>
|> When you bind with INADDR_ANY, you are saying that you don't care which
|> address it binds to. But I don't think this means "accept connections from
|> any network adapter". I think it means "select an adapter somehow, bind to
|> it, and accept connections on it".
|
| The ip man page says: "When INADDR_ANY is specified in the bind call the
| socket will be bound to all local interfaces." So it should work.
Right. And for the original poster, INADDR_ANY is spelled '' (i.e.,
an empty string supplied as the address parameter is so interpreted.)
Donn Cave, donn at u.washington.edu
More information about the Python-list
mailing list