?
Solved

How to select TCP and pipe in NT

Posted on 2001-08-06
1
Medium Priority
?
265 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 600 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

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

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 programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

850 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