delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/12/14:38:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
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 <stefan AT lkcc DOT org>
X-Sender: stefan AT bono DOT reversers DOT net
To: tau AT entropia DOT com
cc: "cygwin AT sourceware DOT cygnus DOT com" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: non-blocking socket?
In-Reply-To: <20000411191156A.tau@entropia.com>
Message-ID: <Pine.LNX.4.10.10004122133350.509-100000@bono.reversers.net>
MIME-Version: 1.0

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

- Raw text -


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