How to select TCP and pipe in NT

In Unix, we can select on both tcp and pipe using fd. But in NT, select will return an error message (WSAENOTSOCK) is I select on pipe. I need to check both a socket and a pipe which communicates between the main program and a console. I can't check one by one, because select will spend a certain time (timeout). How can I do it without any delay? Thanks a lot.
Who is Participating?
jkrConnect With a Mentor Commented:
This is usually doe using APCs (asynchronous procedure calls) - see on how to do that with sockets, and a sample program for named pipes (though is tuses MFC) at
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.