Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4000
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder5.news.weretis.net!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.018 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; '(python': 0.05; 'though.': 0.07; 'bind': 0.09; 'hostname': 0.09; 'sockets': 0.09; 'am,': 0.14; 'wrote:': 0.14; 'again..': 0.16; 'subject:interface': 0.16; 'tue,': 0.20; 'programming': 0.20; 'header:In-Reply-To:1': 0.22; 'integer': 0.23; 'chris': 0.27; 'message-id:@mail.gmail.com': 0.28; 'string': 0.29; 'does': 0.31; 'to:addr:python-list': 0.32; 'done': 0.32; "i've": 0.33; 'there': 0.35; 'apologies': 0.35; 'constant': 0.35; 'received:209.85': 0.37; 'exactly': 0.37; 'apr': 0.38; 'received:google.com': 0.38; '8bit%:6': 0.39; 'to:addr:python.org': 0.39; 'where': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'exact': 0.60; '2011': 0.62; '26,': 0.68; 'received:209.85.210.174': 0.84; 'received:mail- iy0-f174.google.com': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=tLM7605Ll7fwdqwpKC/0gK97KddjpBDQB8+vAWtHfKs=; b=Cl/TNqM6jNH9wCuE87+YhG+MYOX2pG3G1smp0ahvkzU+mN9WCZ9IbXoB6m9w0lcWYP dY3qX24m7vmMlnyN9kPKmq4w3+9o6NIssuHAK5HzXTeKse2nJVHJRk6CIya2d+ZRjS7J R9ZenB/05Hwr93tuyKAOuYPO+Dzgt+OZmWrWE= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=fkbvGAgQiYJAGv13wqM3tI6LYM8PWZi3Yi8HNwa/nYy2CF38DsgZHWYh3G0HwgSeJJ ucMihq0o9YwEkpmI3QCt8v5x9dm0TWrE7GUasAaA4mKuTO05vKxRPMr+pZYE8KGXUen/ 8Vw7Z9OWMKEFMEkoLFGrvAfV0ES4WtXCR7bgg= |
| MIME-Version | 1.0 |
| In-Reply-To | <2s1h88-r3v.ln1@svn.schaathun.net> |
| References | <k4vg88-0tt.ln1@svn.schaathun.net> <mailman.815.1303760950.9059.python-list@python.org> <ra1h88-e0u.ln1@svn.schaathun.net> <2s1h88-r3v.ln1@svn.schaathun.net> |
| Date | Tue, 26 Apr 2011 07:21:09 +1000 |
| Subject | Re: sockets: bind to external interface |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | quoted-printable |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.818.1303766478.9059.python-list@python.org> (permalink) |
| Lines | 11 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1303766478 news.xs4all.nl 41117 [::ffff:82.94.164.166]:48246 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:4000 |
Show key headers only | View raw
On Tue, Apr 26, 2011 at 6:24 AM, Hans Georg Schaathun <hg@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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
sockets: bind to external interface Hans Georg Schaathun <hg@schaathun.net> - 2011-04-25 20:37 +0100
Re: sockets: bind to external interface Chris Angelico <rosuav@gmail.com> - 2011-04-26 05:49 +1000
Re: sockets: bind to external interface Jean-Paul Calderone <calderone.jeanpaul@gmail.com> - 2011-04-25 13:13 -0700
Re: sockets: bind to external interface Hans Georg Schaathun <hg@schaathun.net> - 2011-04-25 21:14 +0100
Re: sockets: bind to external interface Hans Georg Schaathun <hg@schaathun.net> - 2011-04-25 21:24 +0100
Re: sockets: bind to external interface Chris Angelico <rosuav@gmail.com> - 2011-04-26 07:21 +1000
Re: sockets: bind to external interface Chris Angelico <rosuav@gmail.com> - 2011-04-26 06:30 +1000
Re: sockets: bind to external interface Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-04-25 23:18 +0200
Re: sockets: bind to external interface Chris Angelico <rosuav@gmail.com> - 2011-04-26 07:50 +1000
Re: sockets: bind to external interface Hans Georg Schaathun <hg@schaathun.net> - 2011-04-26 06:20 +0100
Re: sockets: bind to external interface Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2011-04-25 23:14 +0200
Re: sockets: bind to external interface Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-04-26 11:24 +0200
csiph-web