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,f69eb259f3ed2afb,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: markwork66@yahoo.com Newsgroups: comp.lang.ada Subject: Using GNAT.Sockets Date: 13 Apr 2005 08:07:26 -0700 Organization: http://groups.google.com Message-ID: <1113404846.310840.322920@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 208.20.220.69 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1113404850 13060 127.0.0.1 (13 Apr 2005 15:07:30 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 13 Apr 2005 15:07:30 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=208.20.220.69; posting-account=_Inhcg0AAAAPC2BsuUqoGG-atarvM4_J Xref: g2news1.google.com comp.lang.ada:10423 Date: 2005-04-13T08:07:26-07:00 List-Id: We are just converting to GNAT and I am used to the traditional TCP send/receive using an address and byte count to send/receive data. I've used the Receive_Socket command in GNAT.Sockets and I am having trouble receiving all the bytes. The "Last" parameter is not always equal to the size of the message I'm sending and I don't see a way to call back into the procedure to receive the rest of the bytes. Further, we have many different sized messages and, from my little playing with GNAT sockets, it seemed the "Item" parameter is the only way to specify the number of bytes you want to receive. So, does that mean I would have to declare an array of bytes (the "Item" parameter) for all of my messages and the then do an unchecked conversion or a copy_bytes routine to get the data into my Ada message data type? Any help anybody could provide would be most appreciated.