🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ConnectNamedPipe and closing Application

#1417
From: Remy Lebeau (TeamB)
Date: Wed, 22 Aug 2007 16:41
13 lines
1388 bytes
"newbie" <ms_crack@yahoo.com> wrote in message
news:46cc5077$1@newsgroups.borland.com...

> Any suggestions on how to change, or deal with this behavior?

ConnectNamedPipe() supports overlapped I/O.  Simply provide an OVERLAPPED
structure to it, and the call will then always exit immediately.  You can
then use any of the various WaitFor...() functions along with
GetOverlappedResult() to implement a timeout in your code.


Gambit
Technical Details
Message-ID: <46cc6731$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46cc5077$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,75a6e7b4be820a
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <46cc5077$1@newsgroups.borland.com>
Subject: Re: ConnectNamedPipe and closing Application
Date: Wed, 22 Aug 2007 09:41:08 -0700
Lines: 15
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: 75.83.29.61
Message-ID: <46cc6731$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1187800881 75.83.29.61 (22 Aug 2007 09:41:21 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 1244