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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,deffccd74319c23d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!o13g2000cwo.googlegroups.com!not-for-mail From: "markp" Newsgroups: comp.lang.ada Subject: Re: Sending Variable Length Messages with GNAT.Sockets Date: 9 May 2005 04:19:16 -0700 Organization: http://groups.google.com Message-ID: <1115637556.074009.113830@o13g2000cwo.googlegroups.com> References: <1115633512.107824.259680@g14g2000cwa.googlegroups.com> <427f3dfa$0$28058$ba620e4c@news.skynet.be> NNTP-Posting-Host: 208.20.220.69 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1115637560 7580 127.0.0.1 (9 May 2005 11:19:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 9 May 2005 11:19:20 +0000 (UTC) In-Reply-To: <427f3dfa$0$28058$ba620e4c@news.skynet.be> User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: o13g2000cwo.googlegroups.com; posting-host=208.20.220.69; posting-account=_Inhcg0AAAAPC2BsuUqoGG-atarvM4_J Xref: g2news1.google.com comp.lang.ada:10968 Date: 2005-05-09T04:19:16-07:00 List-Id: Thank you for your quick reply. Our target platforms are not Ada, so we chose to use the write. Could you tell me some place I could look to research how to write my own stream input/output routines? I could pass a byte count in with the message to be sent, but the stream calls seem to only take a type, not a length. For example, in our application code, we have a data type that can hold up an array of 512 entries, but we might only want to send the first 32, for example. We have built into the message header how many bytes there are, but Ada would know nothing about that. We are used to the traditional "address, byte count" wat of dealing with sockets Any help you could provide would be greatly appreciated. Thank you very much, Mark.