Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3.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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'say,': 0.05; 'repeated': 0.07; 'exceeds': 0.09; 'timestamp': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'peer-to-peer': 0.16; 'status",': 0.16; 'tcp': 0.16; 'tcp,': 0.16; 'udp,': 0.16; 'wrote:': 0.17; 'basically': 0.17; 'instance,': 0.17; 'thu,': 0.17; 'jan': 0.18; 'saying': 0.18; '31,': 0.22; 'advise.': 0.22; 'work,': 0.22; "i've": 0.23; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'message-id:@mail.gmail.com': 0.27; 'node': 0.29; 'periodic': 0.29; "i'm": 0.29; 'connection': 0.30; 'usually': 0.30; 'figure': 0.30; 'purposes,': 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; "won't": 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'next': 0.35; 'explain': 0.36; 'but': 0.36; 'address.': 0.36; 'why': 0.37; 'received:209': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'system.': 0.39; 'to:addr:python.org': 0.39; 'help': 0.40; 'your': 0.60; 'share': 0.61; 'latest': 0.61; 'back': 0.62; 'hear': 0.63; 'results': 0.65; 'broadcast': 0.65; 'promise': 0.65; 'goals': 0.78; '2013': 0.84; 'alberto': 0.84; 'acknowledge': 0.95 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=98ZE94uQ0ikQfsDSNfLihDLQfYchVChF1WiaYSyYkrc=; b=uqPNiIuk2i5jmWhaGvJ+1Ke5sV0ANjP7AZiphgjuzJju/rDesggTrCmFwE1BhrIwl1 WkSv/4ZXtE+ZdXuUuTDV+6qrTn3auysIsq6EvuP48if290JZJ4IHAieFRbd0ZlhUS6XR 5+tClNwKgr4jd2zAYGz5dqh+WoyKaAO/ATEwxLRkKk2ALQa1vjDsGuWUEZuW9vp3Zbmz XerroHAXczzLXVJSfZPo5V3z7zCfTmCd/lYtlNENrZFzChQckqPrjWDNd4fnu9U4wG00 QTpg/oSjgvWwEQaMPYJRbwgyNdQFVMdf3YuP5KbKLag8GmTDJsYXteXhiKJ7sQb9NDGF O/lQ== MIME-Version: 1.0 X-Received: by 10.220.150.136 with SMTP id y8mr6206309vcv.34.1359585298704; Wed, 30 Jan 2013 14:34:58 -0800 (PST) In-Reply-To: References: <5109555F.3050307@gmail.com> Date: Thu, 31 Jan 2013 09:34:58 +1100 Subject: Re: pyrudp 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: 24 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1359585307 news.xs4all.nl 6903 [2001:888:2000:d::a6]:59117 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:37970 On Thu, Jan 31, 2013 at 6:55 AM, Jorge Alberto Diaz Orozco wrote: > I want to use a reliable UDP connection like you say, a TCP like connection but over UDP. thaks for your recomendation, if I get good results I promise to share them. To get something reliable over UDP, you're going to need to acknowledge everything you're sent, and if you don't hear back an acknowledgement, re-send. Basically reimplement TCP, or parts of it. Why do you need to use UDP? I've used UDP for a number of purposes, but usually in a "fire and forget" system. For instance, my latest use of it was a peer-to-peer self-healing network; each node would broadcast a periodic UDP packet saying "Hi, I'm here, and here's my current status", and each node would keep track of the timestamp when it last received such a packet from each known IP address. If the time-since-last-received exceeds three broadcast intervals, the node is considered to be dead. But for this to work, I have to not care about individual packet loss; there is no data in the packet that won't be repeated in the next one. This is a reliable *system* built on UDP. Can you explain your goals and restrictions? Might help us figure out how to advise. ChrisA