delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-Id: | <4.3.2.7.2.20000809110306.01d6f008@mail.prefres.com> |
X-Sender: | "Mminnis" <mminnis AT prefres DOT com> |
X-Mailer: | QUALCOMM Windows Eudora Version 4.3.2 |
Date: | Wed, 09 Aug 2000 11:14:55 -0500 |
To: | cygwin AT sourceware DOT cygnus DOT com |
From: | "Matt Minnis" <mminnis AT prefres DOT com> |
Subject: | accept() blocking |
Cc: | cygwin AT sourceware DOT cygnus DOT com |
In-Reply-To: | <F56fpGtS79AX7Ur5qWn00001043@hotmail.com> |
Mime-Version: | 1.0 |
X-SLUIDL: | 2BA41223-6E0E11D4-B71B0080-C813F968 |
I am having a problem. I am using cygwin 1.1.3 With a telnet socket opened as: *fd = socket(AF_INET,SOCK_STREAM,0); fcntl(*fd, F_SETFL, O_NONBLOCK); When I call accept(.....) like: int *status = malloc(sizeof(int)); *status = accept(*fd, NULL, 0); The program will sit and wait for a telnet session to connect. If a session is already connected, it will do the NONBLOCK like it is supposed to. Thanks, Matt Cthulhu for President. Why settle for a lesser evil? ========================================================= Preferred Resources (314) 567-7600 phone 701 Emerson rd. (314) 993-6699 fax Suite 475 mminnis AT prefres DOT com St. Louis, MO 63141 ========================================================= -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |