🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11682

Re: How to use "(named) pipes" in Windows with BCB6?

#11682
From: Thomas Maeder [TeamB]
Date: Sat, 17 Jan 2004 17:11
24 lines
2154 bytes
Please direct your browser at http://info.borland.com/newsgroups/ and read the
newsgroup guidelines. One of them asks us not to post the same question to
different newsgroups, but to pick the most appropriate one and just post
there. Thanks!

[Followup-To: borland.public.cppbuilder.nativeapi - other participants please
post to that newsgroup only.]


<Pipe> writes:

> How to use "(named) pipes" in Windows with BCB6? And how to do it in Linux?

You should be able to use the Posix Standard functions pipe (for creating
unnamed pipes) and mkfifo (for creating named pipes) on both Linux and
Windows. On Linux, you can create a named pipe using the command fifo from
the command line. I don't know of such a command on Windows, but wouldn't
be surprised if it existed.

To be able to use a (unnamed) pipe to communicate between two processes,
you will have to use fork(); this will restrict your possibilities of using
class type objects a lot, I think.

A named pipe is used much like a file.
Technical Details
Message-ID: <m21xpyo5yl.fsf@madbox2.local>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <40095bef$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,609f0d26af45b325
X-Google-Attributes: gid10cc67,public
X-Google-Thread: 102541,609f0d26af45b325
X-Google-Attributes: gid102541,public
X-Google-ArrivalTime: 2004-01-17 09:17:09 PST
Newsgroups: borland.public.cppbuilder.nativeapi,borland.public.cppbuilder.students
Followup-To: borland.public.cppbuilder.nativeapi
Subject: Re: How to use "(named) pipes" in Windows with BCB6?
References: <40095bef$1@newsgroups.borland.com>
From: maeder@glue.ch (Thomas Maeder [TeamB])
Organization: TeamB
User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux)
Date: Sat, 17 Jan 2004 18:11:46 +0100
Message-ID: <m21xpyo5yl.fsf@madbox2.local>
Cancel-Lock: sha1:A9nD+2LR39BVcKZ0kzeCKwdhV9w=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 80.218.8.157
X-Trace: newsgroups.borland.com 1074359520 80.218.8.157 (17 Jan 2004 09:12:00 -0700)
Lines: 25
X-Authenticated-User: tmaeder
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail