From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!news.mb-net.net!open-news-network.org!.POSTED.2804:431:81bf:5e00:979a:5042:4f17:e414!not-for-mail From: Daniel Norte de Moraes Newsgroups: comp.lang.ada Subject: Re: Sockets, Streams, and Element_Arrays: Much confusion Date: Thu, 5 Jan 2023 07:55:43 -0000 (UTC) Organization: MB-NET.NET for Open-News-Network e.V. Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 5 Jan 2023 07:55:43 -0000 (UTC) Injection-Info: gwaiyur.mb-net.net; posting-host="2804:431:81bf:5e00:979a:5042:4f17:e414"; logging-data="687106"; mail-complaints-to="abuse@open-news-network.org" User-Agent: Pan/0.149 (Bellevue; 4c157ba) Cancel-Lock: sha1:NWkB0N1Oc1y30ST++tw2uo4TQeg= X-User-ID: U2FsdGVkX181jzphO62QeQ1w7E5xdTfQjDbbw6XHnXVVzYFliJWr9hzNfLDm/bmP Xref: reader01.eternal-september.org comp.lang.ada:64774 List-Id: Em Sat, 31 Dec 2022 14:11:55 +0200, Mark Gardner escreveu: > At this point, I'm half-tempted to make my own binding, but as I've > never done that sort of thing before, I thought I'd ask the wisdom of > the Usenet if there is a way to convert a Stream_Element_Array into the > exotic types of Unsigned_16 and String. You are obliged to use gnat-sockets ? No? then use https://github.com/danieagle/adare-net And Be Happy! (Enjoy!!) p.s.: see the client and server in udp in example diretory. p.s.: nowdays Adare_Net has a manual in pdf, too Thanks All, Dani.