Article View: borland.public.cppbuilder.nativeapi
Article #3136Re: NamedPipe problem
From: T. Meyer
Date: Fri, 18 Aug 2006 07:03
Date: Fri, 18 Aug 2006 07:03
15 lines
1643 bytes
1643 bytes
Hello Gambit, thanks for reply. Using FILE_FLAG_OVERLAPPED does not solve my problem, still I get The handle is invalid on reading from pipe :-( Just to get it right the event is signaled if an amount of bytes were sent, but there can be still bytes to send left? E.g. the server wants to send 100 bytes, my client receives 40 bytes and singnals the event, then I have to call GetOverlappedResult to see that only 40 bytes were tranmsitted? How to I get the rest 60 bytes? Still wait the next evt signaled and call the GetOverlappedResult again and see if e.g. an EOF happened? Thanks for further help!
Technical Details
Message-ID:
<44e56623$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44e47a8e$1@newsgroups.borland.com> <44e4a098$1@newsgroups.borland.com> <44e4affa@newsgroups.borland.com> <44e4c819@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,facc6570cb7e9402 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "T. Meyer" <timon@mustek.de> Newsgroups: borland.public.cppbuilder.nativeapi References: <44e47a8e$1@newsgroups.borland.com> <44e4a098$1@newsgroups.borland.com> <44e4affa@newsgroups.borland.com> <44e4c819@newsgroups.borland.com> Subject: Re: NamedPipe problem Date: Fri, 18 Aug 2006 09:03:00 +0200 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 80.132.166.197 Message-ID: <44e56623$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155884579 80.132.166.197 (18 Aug 2006 00:02:59 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail