This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

accept() blocking


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@prefres.com
St. Louis, MO
63141
=========================================================


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]