From: anon@anon.org (anon)
Subject: Re: GNAT.Sockets
Date: Tue, 09 Oct 2007 15:10:37 GMT
Date: 2007-10-09T15:10:37+00:00 [thread overview]
Message-ID: <NRMOi.656487$p47.321175@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: fefu9e$heu$1@news1.ewetel.de
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 <fefu9e$heu$1@news1.ewetel.de>, Bartek <bartek@tzi.de> 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
next prev parent reply other threads:[~2007-10-09 15:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-09 13:04 GNAT.Sockets Bartek
2007-10-09 15:10 ` anon [this message]
2007-10-09 20:36 ` GNAT.Sockets Maciej Sobczak
2007-10-10 4:52 ` GNAT.Sockets Simon Wright
-- strict thread matches above, loose matches on Subject: below --
2002-02-23 12:20 GNAT.Sockets Alexei Polkhanov
2002-02-25 18:11 ` GNAT.Sockets Pascal Obry
2002-03-23 23:53 ` GNAT.Sockets Volkert
2002-03-24 7:22 ` GNAT.Sockets Pascal Obry
2002-03-24 8:56 ` GNAT.Sockets Volkert
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox