🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Connecting named pipes

#8348
From: nicolasr
Date: Mon, 01 Nov 2004 23:29
24 lines
1606 bytes
thanks I will try that!
Nick

> "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: <4186c6e3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!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> <4185fbda$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: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <418448ff$1@newsgroups.borland.com> <4185fbda$1@newsgroups.borland.com>
Subject: Re: Connecting named pipes
Date: Tue, 2 Nov 2004 00:29:39 +0100
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 80.133.189.199
Message-ID: <4186c6e3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099351779 80.133.189.199 (1 Nov 2004 15:29:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail