This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: Multithreaded accept/connect hang (WSAEINPROGRESS)


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/


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