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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada x Datagram Sockets Date: Thu, 7 Feb 2019 18:15:44 -0600 Organization: JSA Research & Innovation Message-ID: References: <47f17695-f9a5-4024-b2da-3f13209dc4fd@googlegroups.com> <818f5ff4-f18d-42b8-950d-9b597c012aa4@googlegroups.com> <62406dfb-54c9-4db3-b461-0ad72d4a782c@googlegroups.com> Injection-Date: Fri, 8 Feb 2019 00:15:45 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="3886"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader01.eternal-september.org comp.lang.ada:55463 Date: 2019-02-07T18:15:44-06:00 List-Id: "Dmitry A. Kazakov" wrote in message news:q3gq7i$o27$1@gioia.aioe.org... ... > Anyway, the way to do it is to have an outgoing packet buffer of > Stream_Element_Array. You put data there and then send all buffer to the > socket (write to the file etc), in one piece. Note that Ada 2020 will have a package FIFO_Streams for this purpose (that is, marshalling/unmarshalling streams). See AI12-0293-1 or 13.13.1 in the draft 16 or later RM: http://www.ada-auth.org/standards/2xrm/html/RM-13-13-1.html (toward the bottom). We had to write such a package for Claw, in order to allow using stream attributes to put/get items from Windows data structures like the registry or clipboard. It's something that you can hardly live without, which is why it will be standardized. Randy.