Article View: comp.os.os2.programmer
Article #264Re: Named pipe in DOS session
From: Carlos Rimola-Sarti car
Date: Wed, 05 Aug 1992 00:44
Date: Wed, 05 Aug 1992 00:44
32 lines
1994 bytes
1994 bytes
In article <55957.20892566@kcbbs.gen.nz> Chris_Sullivan@kcbbs.gen.nz (Chris Sullivan) writes: >I have some debugging routines which accept input from a named pipe >and display in a Presentation Manager window. > >I'd like to use them to debug DOS applications running in an OS/2 2.0 >DOS session. > >Can a DOS application open and write a named pipe? >If so, how do I do this? > >Thanks. Named pipes, which are created via DosMakeNmPipe, look like part of the file system and are supposed to be readable/writable from other OS/2 or DOS applications via open/close calls. Your OS/2 debug application should create the pipe by calling DosMakeNmPipe specifying a unique name in the form "\\PIPE\\your-name". It then should issue a DosConnectNmPipe which will block until a "client" program (DOS or OS/2) issues an open on the named pipe. Your DOS program can treat the pipe as any other file and read/write from/to it. Your server program should issue DosRead to get the data written by your DOS client. I think this should give you an idea of the process but before implementing I recommend you read the OS/2 Programming Ref. Guide for details on the actual calls. +---------------------------------------+-----------------------------------+ | Carlos Rimola-Sarti | email: rimola@csisdn.com | | Connective Strategies Inc. | car@btr.com | | ISDN PRI Connectivity Group | phone: 415-903-2585 | +---------------------------------------+-----------------------------------+
Technical Details
Message-ID:
<7648@public.BTR.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!morrow.stanford.edu!decwrl!mips!public!carReferences:
<55957.20892566@kcbbs.gen.nz>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!morrow.stanford.edu!decwrl!mips!public!car From: car@public.BTR.COM (Carlos Rimola-Sarti car@btr.com) Newsgroups: comp.os.os2.programmer Subject: Re: Named pipe in DOS session Message-ID: <7648@public.BTR.COM> Date: 5 Aug 92 00:44:11 GMT References: <55957.20892566@kcbbs.gen.nz> Organization: Connective Strategies, Inc. (CSI). Mountain View, California Lines: 32