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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,62ab88cac7a1dbb,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.74.40 with SMTP id q8mr821531pav.19.1347674394675; Fri, 14 Sep 2012 18:59:54 -0700 (PDT) Path: t10ni47041200pbh.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.internetamerica!news.posted.internetamerica.POSTED!not-for-mail NNTP-Posting-Date: Fri, 14 Sep 2012 20:59:53 -0500 From: Robert Love Newsgroups: comp.lang.ada Date: Fri, 14 Sep 2012 21:01:00 -0500 Message-ID: <201209142101005065-rblove@airmailnet> MIME-Version: 1.0 Subject: Gnat Sockets & Streams User-Agent: Unison/2.1.9 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 98.194.35.17 X-Trace: sv3-637uU77T1qvAOMH4CAkHvqZaeKVe6+mwdWqjqKBgpwV+zTbG87PUhr6YXyrIPRqec9PrARiHv2Axi5g!9mKGAF7K30a+G67+4qRdPT/ebrNFF9bF6VcJivtSlA4f9koUAOp4jYUhFGs5HVEhgXnQiQTfOJCV X-Complaints-To: abuse@airmail.net X-DMCA-Complaints-To: abuse@airmail.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2224 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Date: 2012-09-14T21:01:00-05:00 List-Id: I've a problem with the Gnat.Sockets that is driving me crazy. I have to use multicast to announce a service is available. I've looked at the example program given in g-socket.ads and compiled in and it runs just as expected. I've extracted the multicast portion and split into two programs and compiled on different machines and it communcates the string stream just as expected. When I insert this code into my actual program it works differently. The string comes over 1 character at at time. I've looked over the code to see that I used the package exactly like the example. I've had coworkers look it over. We don't see any way the String'Output(Channel, "Dummy Data"); can output the data one character at a time. The Output is in a loop and I would expect to see Dummy Data Dummy Data Dummy Data instead of D u m m y D by the receiving program. I've also used tcpdump to see that the packet really contains just one character instead of there being a problem with the receiving progam. Is there any way a stream can be corrupted? Any settings parameters I could compile with that change the behavior? Any comments appreciated.