[c/c++] file descriptor non-blocking

Started by
3 comments, last by hylke2 18 years, 9 months ago
Hello, I've got a small question. In Linux(and possibly other unix like operating systems), you can make a file descriptor non blocking using the function from the header fcntl.h with this call:
fcntl(FileDescriptor, F_SETFL, O_NONBLOCK);
My question is, does the function fcntl also exist in Windows? Thanx Hylke
Advertisement
I do beleive it's called Overlapped IO in Windows

And No. fcntl does not exist in windows
Could you give a small example?
Because I've searched the net and I could only find some strange things like:
WSAOVERLAPPED structure and WSAIoctl([..]) which needs lot's of parameters which I don't know where they're used for.
Thanx in advance,
Hylke
MSDN has several example apps that illustrate it. CHekc for threads and IO.

Cheers
Chris
CheersChris
ok, thanx.
Hylke

This topic is closed to new replies.

Advertisement