Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com X-Authentication-Warning: bono.reversers.net: stefan owned process doing -bs Date: Wed, 12 Apr 2000 21:34:53 +0200 (CEST) From: stefan X-Sender: stefan AT bono DOT reversers DOT net To: tau AT entropia DOT com cc: "cygwin AT sourceware DOT cygnus DOT com" Subject: Re: non-blocking socket? In-Reply-To: <20000411191156A.tau@entropia.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 11 Apr 2000 tau AT entropia DOT com wrote: > I appreciate if non-blocking socket is supposed to work and if so, how > to use it. > /* winsock function to make it non-blocking */ > unsigned long a[1]; > int e = ioctlsocket(s, FIONBIO, a); > if (e == -1) { > printf("ioctlsocket failed\n"); > exit(1); > } Try setting a[1] to 1 !!! Maybe this will help. Stefan. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com