From mboxrd@z Thu Jan 1 00:00:00 1970 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: In memory Stream Date: Fri, 16 Feb 2024 13:40:27 +0100 Organization: A noiseless patient Spider Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 16 Feb 2024 12:40:27 -0000 (UTC) Injection-Info: dont-email.me; posting-host="6264116c0b5c21303034903445216bdb"; logging-data="4056457"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PChFICroo6zzUET36UMSx04/QNqR4yJ8=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:LpA7EKXixQ14XUA9miJQ6FkcQ3Q= In-Reply-To: Content-Language: en-US Xref: news.eternal-september.org comp.lang.ada:66060 List-Id: On 2024-02-16 10:41, DrPi wrote: > I want to transfert some data between applications through a memory buffer. > The buffer transfert between applications is under control. > My problem is with the buffer content. > I though I'll use a Stream writing/reading in/from the memory buffer. > How can I achieve this ? I've found no example doing this. It of course depends on the target operating system. You need to create a shared region or memory mapped file etc. You also need system-wide events to signal the stream ends empty or full. Simple Components has an implementation interprocess streams for usual suspects: http://www.dmitry-kazakov.de/ada/components.htm#12.7 > Note : I use Ada 2012. No problem, it is kept Ada 95 compatible. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de