Article View: borland.public.cppbuilder.nativeapi
Article #3283Re: NamedPipe problem
From: mr. Burns
Date: Thu, 17 Aug 2006 18:02
Date: Thu, 17 Aug 2006 18:02
25 lines
2180 bytes
2180 bytes
Hello Gambit, thanks for your help! My application I have shown is not complete up to now, so I already know about the exit() issue and I also miss in this state to free the handles. It is not the final version just a scrapbook where I can test and learn more about named pipes. So give free the handles and replace the exit() will come on refining later. But thanks anyway for your help on these issues! Up to now I did not really understand what the GetOverlappedResult() function is for. I just want to let read my client a certain No. of bytes and if this is not finsihed e.g. in 20 seconds my program should show an error message. But in this 20 seconds I want to do something useful and not block my application. Lets say I use now the WaitForSingleObject() function. You said that the overlapped ReadFile function signals the event when reading is finished. Then I just have to code e.g. ShowMessage(InBuf) in the WAIT_OBJECT_0 case to catch the complete transmitted data, or not? So for what now is the GetOverlappedResult() function? What does it do? When do I have to call it? How many bytes maximum I can transmit using named pipes? Is there any limit? Thanks for further information!
Technical Details
Message-ID:
<44e4affa@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>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,facc6570cb7e9402 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "mr. Burns" <mr._burns@web.de> Newsgroups: borland.public.cppbuilder.nativeapi References: <44e47a8e$1@newsgroups.borland.com> <44e4a098$1@newsgroups.borland.com> Subject: Re: NamedPipe problem Date: Thu, 17 Aug 2006 20:02:20 +0200 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 84.63.122.70 Message-ID: <44e4affa@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155837946 84.63.122.70 (17 Aug 2006 11:05:46 -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