Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:: [': 0.02; 'subject:test': 0.05; 'subject:Tutor': 0.09; 'subject:problems': 0.09; 'am,': 0.12; 'things.': 0.12; 'received:209.85.210.174': 0.13; 'received:mail-iy0-f174.google.com': 0.13; 'subject:] ': 0.14; '16,': 0.15; 'connect()': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'it).': 0.16; 'localhost': 0.16; 'server?': 0.16; 'subject:server': 0.16; 'wrote:': 0.18; "haven't": 0.20; 'trying': 0.21; 'dec': 0.22; 'header:In-Reply- To:1': 0.22; 'fine': 0.24; 'code': 0.25; 'code,': 0.27; 'work.': 0.28; 'message-id:@mail.gmail.com': 0.28; 'server': 0.30; 'chris': 0.30; 'actually': 0.33; 'fri,': 0.34; 'to:addr:python-list': 0.34; 'certain': 0.34; 'two': 0.37; 'but': 0.37; 'run': 0.37; 'received:google.com': 0.37; 'think': 0.37; 'received:209.85': 0.38; 'client': 0.39; 'should': 0.39; 'received:209': 0.40; 'to:addr:python.org': 0.40; '2011': 0.61; 'connect': 0.62; 'subject:program': 0.67 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2CrJATBGYfSzD773kITZb3nIePiOzGnHLmxAQWwaa4Y=; b=LKpV/+kGG6QYRGiVm1mcTk8g8/gFW3CVsZeN/N4JO0CWiGRF1IJMyiaQ9mWUoFJSsM nRqWDt/F1EFto5DTQX86sFcDc1Loxm5i5GZFnYQ8BIlj3qqW5uuA6lmasdTjW5qkTIRE S5AaCptbsrDtZMvLQ65FjfoDVHe0WgUj+Eblg= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 16 Dec 2011 07:36:25 +1100 Subject: Re: [Tutor] Localhost client-server simple ssl socket test program problems From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 10 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323981388 news.xs4all.nl 6867 [2001:888:2000:d::a6]:59308 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:17316 On Fri, Dec 16, 2011 at 6:24 AM, Alexander wrote: > You're trying to connect to the same port on localhost as a client and a > server? I don't know for certain but I don't think that should work. > Two computers? That's bind() on the server and connect() on the client - the normal way to do things. That part of the code is fine (far as I can tell - haven't actually run the code, just eyeballed it). Chris Angelico