delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/07/29/04:50:10

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 29 Jul 2008 10:51:01 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Multithreaded accept/connect hang (WSAEINPROGRESS)
Message-ID: <20080729085101.GA29930@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <00458A287E7A8D44941CBE06478DE90703E391BE AT ALPMLVEM15 DOT e2k DOT ad DOT ge DOT com>
MIME-Version: 1.0
In-Reply-To: <00458A287E7A8D44941CBE06478DE90703E391BE@ALPMLVEM15.e2k.ad.ge.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jul 28 14:49, Labarre, Jean (GE Healthcare) wrote:
> could somebody give me some details on how to "implement accept in
> non-blocking mode manually in <my> application", as Corinna suggested in
> the aforementionned post? 

I meant just normal non-blocking operation.

  socket();
  bind();
  fcntl(F_SETFL, O_NONBLOCK); // or ioctl(FIONBIO)
  listen();
  while select() && ready for read
    accept ();


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019