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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,131e3d946b949413 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.89.133 with SMTP id bo5mr3041927wib.6.1363060815534; Mon, 11 Mar 2013 21:00:15 -0700 (PDT) Path: bp2ni87000wib.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!border2.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: UDP networking with Ada Date: Fri, 8 Mar 2013 13:12:03 +0100 Organization: cbb software GmbH Message-ID: <1lrwhejdn8zy1.rn2edujfic0u$.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2013-03-08T13:12:03+01:00 List-Id: On Fri, 08 Mar 2013 11:50:59 +0000, Simon Wright wrote: > "Dmitry A. Kazakov" writes: > >> If you want streams crossing packet borders you must create a stream >> object of your own on top of the packets, and after you ordered >> packets (UDP does not guarantee that send and receive orders are same) >> and resent missing ones (UDP does not guarantee delivery). > > And consider whether you might not as well have used TCP in the first > place! 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. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de