Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'socket': 0.07; 'high- level': 0.09; 'line:': 0.09; 'received:mail-vc0-f174.google.com': 0.09; 'sure,': 0.09; 'wrong,': 0.09; 'bindings.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:programming': 0.16; 'tcp': 0.16; 'sat,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'library': 0.18; 'possible,': 0.19; 'seems': 0.21; 'example': 0.22; 'programming': 0.22; 'header :In-Reply-To:1': 0.27; "doesn't": 0.30; 'message- id:@mail.gmail.com': 0.30; 'received:209.85.220.174': 0.31; 'quite': 0.32; 'basic': 0.35; 'received:209.85': 0.35; 'received:209.85.220': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'false': 0.36; 'programming,': 0.36; 'too': 0.37; 'level': 0.37; 'received:209': 0.37; 'easiest': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'that,': 0.38; 'bad': 0.39; 'to:addr:python.org': 0.39; 'simple': 0.61; 'direct': 0.67; 'bottom': 0.67; 'programs,': 0.74; 'million': 0.74; 'complexity': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=cJEfGy2bXV3hIsI+2yGVolxoqNYv7Mn+JvmvcjH9XZk=; b=yO8IgvqQY2W09/Fv+4GRy48bpcd0BSk1UlWnMdguzSmy159mI3G8xeRR9LzqkBwQ4u e/SEgSMWUlAryjQCzqpcmih0XyABjeSNodcH50XeWp62pMDnTpF+qwTSM/3Jthf1pxUD MxqzRugl8uvxCHQZxb8G0sBIxUxk+4VZOZqSUlVWugfvaV5OHeharRyKCiNxSnp+KKmU x0cX45+ikDDTDEyHAsBn9Xsw+FXZZ5YztHpEftWtnzfGBJadVZqfg89MzdN8bS3fxgr8 uooVy7RiXIHxULNgRpxkNu9jDOo1Ik/Ak2tb7yWlaG2eqpJgLMh8ovh8e9Mj4+zTFRbQ rd+A== MIME-Version: 1.0 X-Received: by 10.52.231.231 with SMTP id tj7mr4027784vdc.111.1367661639351; Sat, 04 May 2013 03:00:39 -0700 (PDT) In-Reply-To: <5184d6e7$0$15976$e4fe514c@news.xs4all.nl> References: <4aef55bd-f550-4a3d-b11a-285b6fa9892b@googlegroups.com> <5184d6e7$0$15976$e4fe514c@news.xs4all.nl> Date: Sat, 4 May 2013 20:00:39 +1000 Subject: Re: socket programming 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.15 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367661647 news.xs4all.nl 16010 [2001:888:2000:d::a6]:52533 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44707 On Sat, May 4, 2013 at 7:37 PM, Irmen de Jong wrote: > Bottom line: > Socket programming on this level is hugely complicated. It doesn't seem too bad if you > start of with these simple example programs, but that's false hope. If at all possible, > avoid direct socket programming, and use a high-level protocol or library instead > (ftp/http/some IPC library/Twisted). Let them deal with the complexity of the socket layer. > It's not quite as bad as this paragraph seems to imply. Sure, there are a million things that can go wrong, but once you master that, it's the very easiest way to do cross-language, cross-platform, cross-computer communication. Practically EVERY language can do basic TCP sockets, but not every language has higher level bindings. ChrisA