TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mario Semo
from: Craig Swanson
date: 1994-11-28 14:59:48
subject: Named pipe problems

CS> parameters. But there is a problem -- the documentation
 CS> does not agree on the order of the parameters!

 MS> but not the bsedos.h file!!!  Even in the toolkit2.1
 MS> bsedos.h header files, the order was : inbufsize,
 MS> outbufsize. Now (with tlkt30) the docs and the header
 MS> files agree. This was not the case under tlkt21.

 MS> Toolkit 3.0 BSEDOS.H
 MS>    APIRET APIENTRY  DosCreateNPipe(PCSZ  pszName,
 MS>                                    PHPIPE pHpipe,
 MS>                                    ULONG openmode,
 MS>                                    ULONG pipemode,
 MS>                                    ULONG cbInbuf,
 MS>                                    ULONG cbOutbuf,
 MS>                                    ULONG msec);

Based on the results of DosQueryNPipeInfo(), it looks to me that the
cbInbuf and cbOutbuf parameters are reversed from what they should be.
Either that, or the PIPEINFO structure has its corresponding fields
reversed.

So it looks to me that IBM managed to get BOTH the documentation and the
header file wrong for the OS/2 3.0 toolkit.

By the way, what are these functions in BSEDOS.H supposed to do and why
aren't they documented in the toolkit? :

   APIRET APIENTRY  DosRawReadNPipe( PCSZ   pszName,
                                     ULONG  cb,
                                     PULONG pLen,
                                     PVOID  pBuf);

   APIRET APIENTRY  DosRawWriteNPipe( PCSZ  pszName,
                                      ULONG cb);

I'm going to post another message to you about the problems I'm having with
named pipes.  At the moment, I'm wondering why other people are not having
so much trouble with them.


--- Maximus/2 2.01wb

* Origin: OS/2 Connection {at} Mira Mesa, CA (1:202/354)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1
@PATH: 202/354 301 1 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.