From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,131e3d946b949413 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.66.255.39 with SMTP id an7mr218686pad.19.1362745052693; Fri, 08 Mar 2013 04:17:32 -0800 (PST) Path: jm3ni39092pbb.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 08 Mar 2013 06:17:32 -0600 Date: Fri, 08 Mar 2013 07:17:32 -0500 From: "Peter C. Chapin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: UDP networking with Ada References: <1lrwhejdn8zy1.rn2edujfic0u$.dlg@40tude.net> In-Reply-To: <1lrwhejdn8zy1.rn2edujfic0u$.dlg@40tude.net> Message-ID: <58CdnbOaDPJBS6TM4p2dnAA@giganews.com> X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-wcKKOea3gqSQyo7FOsUezPltYxD1BfXvv46R78VamViLxgEgrd7jdbrNUt6hBLn6KPssA2j0bvM8/gT!SNl3ofzW5P/7d5vA4SPFLa1bIPsFoavZwS2r98gCO5Htn133PjqvftR32noXxfw= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1810 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2013-03-08T07:17:32-05:00 List-Id: On 03/08/2013 07:12 AM, Dmitry A. Kazakov wrote: > Yes. UDP is wrong choice, almost always. For multicast purposes there exist > stream-oriented protocols which supersede UDP, e.g. PGM. So, except for > communication to legacy devices and LAN broadcasts UDP should never be > used. UDP is a good choice for simple request/response protocols where both the request and the response are small enough to fit into a single datagram. For example: DNS. Also in this situation the overhead of TCP might be considered undesirable. Peter