Solved

How to select TCP and pipe in NT

Posted on 2001-08-06
1
244 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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 …
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

759 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now