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 From: Chris Faylor Date: Wed, 12 Apr 2000 16:10:02 -0400 To: "cygwin AT sourceware DOT cygnus DOT com" Subject: Re: non-blocking socket? [OFFTOPIC] Message-ID: <20000412161002.A5756@cygnus.com> Reply-To: cygwin AT sourceware DOT cygnus DOT com Mail-Followup-To: cgf AT cygnus DOT com, "cygwin AT sourceware DOT cygnus DOT com" References: <20000411191156A DOT tau AT entropia DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.8i In-Reply-To: ; from stefan@lkcc.org on Wed, Apr 12, 2000 at 09:34:53PM +0200 On Wed, Apr 12, 2000 at 09:34:53PM +0200, stefan wrote: >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. Can I point out that this all has nothing to do with cygwin? You'd probably be better off finding an appropriate winsock mailing list or newsgroup. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com