Multithreaded accept/connect hang (WSAEINPROGRESS)

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Jul 29 08:50:00 GMT 2008


On Jul 28 14:49, Labarre, Jean (GE Healthcare) wrote:
> could somebody give me some details on how to "implement accept in
> non-blocking mode manually in <my> application", as Corinna suggested in
> the aforementionned post? 

I meant just normal non-blocking operation.

  socket();
  bind();
  fcntl(F_SETFL, O_NONBLOCK); // or ioctl(FIONBIO)
  listen();
  while select() && ready for read
    accept ();


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list