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]

blocking connect()



Hello CygWin'ers,

The example program within the attachment shows a problem with connect()
and non-blocking I/O. Normally a connect() with a socket set to
non-bocking mode via fcntl(O_NONBLOCKING) should not block, but it does
with the current (1.1.4) version of cygwin. Is this problem known to you ?

Usually the operarion should state something like "Operation now in
progress" and when select()ing in the write set afterwards you can
determine if the connect() has been failed or not via
getsockopt(SO_ERROR).

Thanks in advance,
	Stefan.

stefanlkcc.org

blocking connect

--
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]