Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'linux,': 0.07; 'socket': 0.07; 'twisted,': 0.07; 'curve': 0.09; 'cc:addr:python-list': 0.11; 'windows': 0.15; 'bind': 0.16; 'bsd': 0.16; 'subject:programming': 0.16; 'twisted': 0.16; 'language': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'cc:addr:python.org': 0.22; 'library,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'received:209.85.217': 0.29; 'thus': 0.29; 'programming.': 0.30; 'message-id:@mail.gmail.com': 0.30; 'yourself.': 0.31; 'third': 0.33; "can't": 0.35; 'received:209.85': 0.35; 'received:google.com': 0.35; 'programming,': 0.36; 'received:209': 0.37; 'handle': 0.38; 'how': 0.40; 'is.': 0.60; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'direct': 0.67; 'yourself': 0.78; 'hand': 0.80; '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:cc:content-type; bh=RCXDnIvQVXx3b6QFz8+qn6ucMMoIlf/pRDARME9FIgI=; b=Ea+c8z1mWCsLuEhdeOngGbLuXj3ezKxs3mNqTeoEUs3Y+NVoBl7EYsoo5KY5oY1AJ8 slowR/21TUwa1HiFgz2SHit7xBD6LPEI3CDZsU+LsMHIsfdqZZTowhBvYtrcV1WotQzF 9yuESYEKHV6SLHkoO1eT41B4nHZpDMGt75SMzT+iV2epLGS109jsw6hSls9OcOC6dpIA wNtCNndhFavgVOuYFodxKom3SFPWzTCP6h/J8hMPnpmXXLP4+uipLSDvxTnnp1AivI8S 7WxsxgCEAzFkvbeyzrAHtgdG3NlqqF4W50LmBDL2ozE7j01aBRlrT8fbmAS0bfLriH+x RVdw== MIME-Version: 1.0 X-Received: by 10.112.89.36 with SMTP id bl4mr8126507lbb.94.1367866457305; Mon, 06 May 2013 11:54:17 -0700 (PDT) In-Reply-To: References: <4aef55bd-f550-4a3d-b11a-285b6fa9892b@googlegroups.com> <5184d6e7$0$15976$e4fe514c@news.xs4all.nl> <5456a5e5-17f6-4e9a-a29c-490a17c1de44@googlegroups.com> Date: Mon, 6 May 2013 19:54:17 +0100 Subject: Re: socket programming From: Arnaud Delobelle To: Chris Angelico Content-Type: text/plain; charset=UTF-8 Cc: python-list@python.org 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1367866465 news.xs4all.nl 15941 [2001:888:2000:d::a6]:55502 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:44841 On 6 May 2013 17:05, Chris Angelico wrote: > I've never used Twisted, so I can't say how good it is. All I know is > that what I learned about socket programming in C on OS/2 is still > valid on Windows and on Linux, and in every language I've ever used > (bar JavaScript and ActionScript, which are deliberately sandboxed and > thus don't have direct socket calls available). So take your pick: Go > with Twisted, and bind yourself to a particular library, or go with > BSD sockets, and do the work yourself. Like everything else in > programming, it's a tradeoff. OTOH Twisted can handle much more than socket programming. On the third hand Twisted has its own learning curve as well... -- Arnaud