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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,191ad4ca9c7033e2 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: GNAT.Sockets Reply-To: anon@anon.org (anon) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Tue, 09 Oct 2007 15:10:37 GMT NNTP-Posting-Host: 12.64.108.98 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1191942637 12.64.108.98 (Tue, 09 Oct 2007 15:10:37 GMT) NNTP-Posting-Date: Tue, 09 Oct 2007 15:10:37 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:2385 Date: 2007-10-09T15:10:37+00:00 List-Id: Last year I created a progran connects an Ada server class program to a TENET program. It uses string in Ada, but bypasses the direct usage of Ada.Streams. So: -- For sending data strings use either String'Output ( Channel, Message ) ; -- or String'Write ( Channel, Message ) ; -- to receive a data string: -- Get message length Integer'Read ( Channel, Length_Message ) ; -- Get String with length => Length_Message String'Read ( Channel, Message ( 1 .. Length_Message ) ) ; In , Bartek writes: >Hi, > >I'm trying to establish an Inter Process Communication using Sockets. >The connection is stable, and I can allready send Strings out oy my Ada >app. But the Problem I have, is to read data out of the stream. > >I'm still not sure, if the Ada.Streams.Read function is usefull for my >problem!? > >Thanks for Advices. > >BP