🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Connecting named pipes

#8334
From: Remy Lebeau (TeamB)
Date: Mon, 01 Nov 2004 09:04
19 lines
1507 bytes
"nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message
news:418448ff$1@newsgroups.borland.com...

>    const char* pipeName = "\\\\192.168.0.1\\pipe\\MyPipe";

You are supposed to be specifying a network host name, not an IP address.

>       Win32Check(WriteFile(pipe, inBuf, bufSize, &written, NULL));
>
>       Win32Check(ReadFile(pipe, outBuf, 255, &read, NULL));

You did not call SetNamedPipeHandleState() after calling CreateFile().  You
should be doing that before performing any reading or writing, since
SetNamedPipeHandleState() controls how the reading/writing works to begin
with.


Gambit
Technical Details
Message-ID: <4185fbda$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <418448ff$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7f4edb9d9ca3ade
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <418448ff$1@newsgroups.borland.com>
Subject: Re: Connecting named pipes
Date: Mon, 1 Nov 2004 01:04:23 -0800
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4185fbda$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099299802 68.69.17.41 (1 Nov 2004 01:03:22 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail