sockets: bind to external interface
Chris Angelico
rosuav at gmail.com
Mon Apr 25 17:21:09 EDT 2011
On Tue, Apr 26, 2011 at 6:24 AM, Hans Georg Schaathun <hg at schaathun.net> wrote:
> Hmmm. socket.INADDR_ANY is an integer and bind insists on a string
> for the hostname (Python 2.6). Is there any use for the integer
> constant? "0.0.0.0" does exactly what I wanted though. Thanks again.
Apologies - I've done most of my sockets programming in C, where the
integer constant is applicable. 0.0.0.0 means the exact same thing.
Chris Angelico
More information about the Python-list
mailing list