Solved

How to select TCP and pipe in NT

Posted on 2001-08-06
1
249 Views
Last Modified: 2013-12-03
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.
0
Comment
Question by:tlu00000
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 200 total points
ID: 6356123
This is usually doe using APCs (asynchronous procedure calls) - see http://www.mvps.org/win32/network/sockhim.html on how to do that with sockets, and a sample program for named pipes (though is tuses MFC) at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpic/html/msdn_servrapp.asp
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question